Comparing version
@@ -46,4 +46,5 @@ /******************************************************************************* | ||
getChild(childName: string): XMLElement | undefined; | ||
removeChild(child: XMLElement): void; | ||
getText(): string; | ||
getPI(target: string): ProcessingInstruction | undefined; | ||
} |
@@ -165,2 +165,14 @@ "use strict"; | ||
} | ||
removeChild(child) { | ||
let length = this.content.length; | ||
for (let i = 0; i < length; i++) { | ||
let node = this.content[i]; | ||
if (node instanceof XMLElement) { | ||
if (node.equals(child)) { | ||
this.content.splice(i, 1); | ||
break; | ||
} | ||
} | ||
} | ||
} | ||
getText() { | ||
@@ -167,0 +179,0 @@ let result = ''; |
{ | ||
"name": "typesxml", | ||
"productName": "TypesXML", | ||
"version": "1.6.3", | ||
"version": "1.7.0", | ||
"description": "Open source XML library written in TypeScript", | ||
@@ -32,5 +32,5 @@ "keywords": [ | ||
"devDependencies": { | ||
"@types/node": "^22.10.5", | ||
"typescript": "^5.7.2" | ||
"@types/node": "^22.13.5", | ||
"typescript": "^5.7.3" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
285686
1%93
3.33%4410
1.1%