Skip to content

AttributesMap

do- edited this page Oct 13, 2022 · 16 revisions

AttributesMap is a Map descendant connected to XMLReader internals to process

Constructor

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

Methods

set (key, value)

The set method is redefined so:

  • zero length string value ('') is replaced by null (Oracle database style);
  • entityResolver is in use to transform the value (unless null);
  • 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.

get (name[, namespaceURI])

If namespaceURI is set, nsMap is scanned for prefixes mapped to it, corresponding qualified names are constructed and used as lookup keys.

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