(node: XmlNode)
| 152 | } |
| 153 | |
| 154 | private pushOpenNode(node: XmlNode): void { |
| 155 | if (this.stack.length >= MAX_XML_NESTING_DEPTH) { |
| 156 | throw new Error(`Maximum XML nesting depth of ${MAX_XML_NESTING_DEPTH} exceeded.`); |
| 157 | } |
| 158 | this.stack.push(node); |
| 159 | } |
| 160 | |
| 161 | private readClosingTag(): void { |
| 162 | this.index += 2; |