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 values are handled with EntityResolver before being set;
  • if nsMap is not null and the key is xmlns or an xmlns: prefixed string, the value is stored in nsMap instead of the current object.

Clone this wiki locally