(name, attributes)
| 48 | } |
| 49 | |
| 50 | openNode(name, attributes) { |
| 51 | const parent = this.tos; |
| 52 | const xml = this._xml; |
| 53 | if (parent && this.open) { |
| 54 | xml.push(CLOSE_ANGLE); |
| 55 | } |
| 56 | |
| 57 | this._stack.push(name); |
| 58 | |
| 59 | // start streaming node |
| 60 | xml.push(OPEN_ANGLE); |
| 61 | xml.push(name); |
| 62 | pushAttributes(xml, attributes); |
| 63 | this.leaf = true; |
| 64 | this.open = true; |
| 65 | } |
| 66 | |
| 67 | addAttribute(name, value) { |
| 68 | if (!this.open) { |