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

Method isStopNode

src/v6/Xml2JsParser.js:212–218  ·  view source on GitHub ↗

* valid expressions are * tag nested * * nested * tag nested[attribute] * tag nested[attribute=""] * tag nested[attribute!=""] * tag nested:0 //for future * @param {string} tagName * @returns

(node)

Source from the content-addressed store, hash-verified

210 * @returns
211 */
212 isStopNode(node){
213 for (let i = 0; i < this.stopNodes.length; i++) {
214 const givenPath = this.stopNodes[i];
215 if(givenPath.match(this.tagsStack, node)) return true;
216 }
217 return false
218 }
219
220 replaceEntities(text){
221 //TODO: if option is set then replace entities

Callers 2

validateClosingTagMethod · 0.95
readOpeningTagMethod · 0.95

Calls 1

matchMethod · 0.45

Tested by

no test coverage detected