Skip to content

AttributesMap

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

AttributesMap is a Map descendant connected to XMLReader internals to process

Constructor

 const a = new AttributesMap (xmlReader, nsMap = null)

Methods

set (key, value)

The set method is redefined so:

  • if xmlReader.useEntities is set on, the value are handled with EntityResolver before being set;
  • if nsMap is not null and the key is 'xmlns' or starts with 'xmlns:', the value is stored in nsMap instead of the current object.

getLocalName (qName)

Returns the part of qName after ':', or the whole qName unless it contains ':'. Proxy to XMLNode.getLocalName (qName).

getNamespaceURI (qName)

Returns the namespace URI for this Qualified name. Proxy to NamespacesMap.getNamespaceURI (qName).

Clone this wiki locally