-
Notifications
You must be signed in to change notification settings - Fork 4
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.
const n = new NamespacesMap (xmlNode)If xmlNode has a parent, copies all entries from its namespacesMap.
| Name | Type | Description |
|---|---|---|
default |
string |
For an instance attached to a node, the value read from the xmlns attribute. Not copied from parent nodes. |
| 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 |