(node: XmlNode)
| 55 | } |
| 56 | |
| 57 | public addChild(node: XmlNode): void { |
| 58 | this.childNodes.push(node); |
| 59 | this.firstChild = node; |
| 60 | if (node.nodeType === XmlNodeType.Element || node.nodeType === XmlNodeType.CDATA) { |
| 61 | this.firstElement = node; |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | public getAttribute(name: string, defaultValue: string = ''): string { |
| 66 | if (this.attributes.has(name)) { |
no test coverage detected