UNPKG

fast-xml-parser

Version:

Validate XML, Parse XML, Build XML without C/C++ based libraries

13 lines (11 loc) 261 B
import {TagPath} from './TagPath.js'; export default class TagPathMatcher{ constructor(stack,node){ this.stack = stack; this.node= node; } match(path){ const tagPath = new TagPath(path); return tagPath.match(this.stack, this.node); } }