| 796 | |
| 797 | |
| 798 | void XMLWriter::addNamespaceAttributes(AttributeMap& attributeMap) |
| 799 | { |
| 800 | NamespaceSupport::PrefixSet prefixes; |
| 801 | _namespaces.getDeclaredPrefixes(prefixes); |
| 802 | for (const auto& prefix: prefixes) |
| 803 | { |
| 804 | XMLString uri = _namespaces.getURI(prefix); |
| 805 | XMLString qname = NamespaceSupport::XMLNS_NAMESPACE_PREFIX; |
| 806 | |
| 807 | if (!prefix.empty()) |
| 808 | { |
| 809 | qname.append(toXMLString(MARKUP_COLON)); |
| 810 | qname.append(prefix); |
| 811 | } |
| 812 | attributeMap[qname] = uri; |
| 813 | } |
| 814 | } |
| 815 | |
| 816 | |
| 817 | void XMLWriter::addNamespaceAttributes(CanonicalAttributeMap& attributeMap) |
nothing calls this directly
no test coverage detected