|
@@ -31,15 +31,15 @@ export class UANodeSet implements IToXML{
|
|
}
|
|
}
|
|
|
|
|
|
toXML(): XMLElem {
|
|
toXML(): XMLElem {
|
|
- const elem =new XMLElem('UANodeSet');
|
|
|
|
- const xmlModels=elem.add(new XMLElem('Models'));
|
|
|
|
|
|
+ const xmlUANodeSet =new XMLElem('UANodeSet');
|
|
|
|
+ const xmlModels=xmlUANodeSet.add(new XMLElem('Models'));
|
|
for(const model of this.models) {
|
|
for(const model of this.models) {
|
|
xmlModels.add(model.toXML())
|
|
xmlModels.add(model.toXML())
|
|
}
|
|
}
|
|
for(const node of this.nodes) {
|
|
for(const node of this.nodes) {
|
|
- xmlModels.add(node.toXML())
|
|
|
|
|
|
+ xmlUANodeSet.add(node.toXML())
|
|
}
|
|
}
|
|
- return elem;
|
|
|
|
|
|
+ return xmlUANodeSet;
|
|
}
|
|
}
|
|
|
|
|
|
static async load(url: string) {
|
|
static async load(url: string) {
|