(node: XmlNode)
| 202 | } |
| 203 | |
| 204 | private addNode(node: XmlNode): void { |
| 205 | const parent = this.stack[this.stack.length - 1]; |
| 206 | if (parent) { |
| 207 | parent.children.push(node); |
| 208 | } else { |
| 209 | this.roots.push(node); |
| 210 | } |
| 211 | } |
| 212 | |
| 213 | private readName(): string { |
| 214 | const startIndex = this.index; |