Skip to content

NamespacesMap

do- edited this page Oct 5, 2024 · 11 revisions

AttributesMap is a Map descendant representing namespace declarations of a parsed XML element in the context of all his ancestors.

The special key '' corresponds to the default namespace.

Constructor

 const n = new NamespacesMap (xmlNode)

If xmlNode has a parent, copies all entries from its namespacesMap.

Properties

Name Type Description
default string For an instance attached to a node, the value read from the xmlns attribute. Not copied from parent nodes.

Methods

Name Type Description
getNamespaceURI (qName, useDefault = false) string URI of the namespace for this Qualified name
getQNames (localName, namespaceURI) * string Iterates over all possible qualified names for the given pair

Clone this wiki locally