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.

Clone this wiki locally