Skip to content

NamespacesMap

do- edited this page Nov 28, 2021 · 11 revisions

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

Constructor

 const n = new NamespacesMap (xmlNode)

If xmlNode has a parent, copies the concent from its namespacesMap.

Methods

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

Clone this wiki locally