MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / addNamespaceAttributes

Method addNamespaceAttributes

base/poco/XML/src/XMLWriter.cpp:798–814  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

796
797
798void 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
817void XMLWriter::addNamespaceAttributes(CanonicalAttributeMap& attributeMap)

Callers

nothing calls this directly

Calls 6

toXMLStringFunction · 0.85
getDeclaredPrefixesMethod · 0.80
getURIMethod · 0.80
emptyMethod · 0.45
appendMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected