MCPcopy Create free account
hub / github.com/NaturalIntelligence/fast-xml-parser / constructor

Method constructor

src/v6/Xml2JsParser.js:20–31  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

18
19export default class Xml2JsParser {
20 constructor(options) {
21 this.options = options;
22
23 this.currentTagDetail = null;
24 this.tagTextData = "";
25 this.tagsStack = [];
26 this.entityParser = new EntitiesParser(options.htmlEntities);
27 this.stopNodes = [];
28 for (let i = 0; i < this.options.stopNodes.length; i++) {
29 this.stopNodes.push(new TagPath(this.options.stopNodes[i]));
30 }
31 }
32
33 parse(strData) {
34 this.source = new StringSource(strData);

Callers

nothing calls this directly

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected