extractNamespaceDeclarations
fn
string[string] extractNamespaceDeclarations(
const XmlTokenAttribute[] attributes,
bool decodeEntities,
bool normalizeValues,
const ref XmlParserLimits limits) @safeExtracts 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
attributes | Token attributes to scan. |
decodeEntities | If true, entity references in attribute values are decoded before recording the URI. |
normalizeValues | If true, attribute values are normalized after decoding. |
limits | Parser limits for entity expansion safety. |
Returns
A mapping from prefix to namespace URI.