()
| 61 | } |
| 62 | |
| 63 | parse(): XmlNode[] { |
| 64 | this.skipByteOrderMark(); |
| 65 | while (this.index < this.xml.length) { |
| 66 | this.readNextToken(); |
| 67 | } |
| 68 | this.assertFullyClosed(); |
| 69 | return this.roots; |
| 70 | } |
| 71 | |
| 72 | private readNextToken(): void { |
| 73 | if (this.xml[this.index] !== '<') { |