|
@@ -42,6 +42,11 @@ export class UANodeSet implements IToXML{
|
|
static async load(url: string) {
|
|
static async load(url: string) {
|
|
const parseOptions:Partial<X2jOptions>={
|
|
const parseOptions:Partial<X2jOptions>={
|
|
ignoreAttributes: false,
|
|
ignoreAttributes: false,
|
|
|
|
+ numberParseOptions: {
|
|
|
|
+ hex: false,
|
|
|
|
+ leadingZeros: false,
|
|
|
|
+ skipLike: /./
|
|
|
|
+ },
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
isArray: (name, jpath, isLeafNode, isAttribute):boolean => {
|
|
isArray: (name, jpath, isLeafNode, isAttribute):boolean => {
|
|
switch(jpath) {
|
|
switch(jpath) {
|
|
@@ -72,7 +77,7 @@ export class UANodeSet implements IToXML{
|
|
}
|
|
}
|
|
const xmlVariables=xmlObj['UANodeSet']['UAVariable'];
|
|
const xmlVariables=xmlObj['UANodeSet']['UAVariable'];
|
|
for(const xmlVariable of xmlVariables) {
|
|
for(const xmlVariable of xmlVariables) {
|
|
- nodes.push(UAVariable.parse(xmlVariable));
|
|
|
|
|
|
+ nodes.push(UAVariable.fromXML(xmlVariable));
|
|
}
|
|
}
|
|
const uaNamespaceUris=xmlObj['UANodeSet']['NamespaceUris'];
|
|
const uaNamespaceUris=xmlObj['UANodeSet']['NamespaceUris'];
|
|
const nst=new NamespaceTable();
|
|
const nst=new NamespaceTable();
|