extractNamespaceDeclarations

fnstring[string] extractNamespaceDeclarations( const XmlTokenAttribute[] attributes, bool decodeEntities, bool normalizeValues, const ref XmlParserLimits limits) @safe

Extracts namespace declarations from a set of token attributes.

Attributes named "xmlns" declare the default namespace. Attributes whose names start with "xmlns:" declare a prefixed namespace. All other attributes are ignored.

Parameters

attributesToken attributes to scan.
decodeEntitiesIf true, entity references in attribute values are decoded before recording the URI.
normalizeValuesIf true, attribute values are normalized after decoding.
limitsParser limits for entity expansion safety.

Returns

A mapping from prefix to namespace URI.