File tree Expand file tree Collapse file tree
src/lib/aas-dataformat-xml Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6565 "typescript-eslint" : " ^8.21.0"
6666 },
6767 "dependencies" : {
68- "xml-sax-ts" : " ^0.3 .0"
68+ "xml-sax-ts" : " ^0.4 .0"
6969 }
7070}
Original file line number Diff line number Diff line change @@ -1159,7 +1159,11 @@ export function deserializeXml(xmlString: string): BaSyxEnvironment {
11591159 return new BaSyxEnvironment ( ) ;
11601160 }
11611161
1162- const rootNode = parseXmlString ( xmlString ) ;
1162+ const rootNode = parseXmlString ( xmlString , {
1163+ // Merge adjacent text callbacks and skip line/column tracking for faster parse.
1164+ coalesceText : true ,
1165+ trackPosition : false ,
1166+ } ) ;
11631167 const parsed = buildObject ( rootNode , {
11641168 stripNamespaces : true ,
11651169 arrayElements : ARRAY_ELEMENTS ,
Original file line number Diff line number Diff line change @@ -4422,10 +4422,10 @@ write-file-atomic@^5.0.1:
44224422 imurmurhash "^0.1.4"
44234423 signal-exit "^4.0.1"
44244424
4425- xml-sax-ts@^0.3 .0 :
4426- version "0.3 .0"
4427- resolved "https://registry.yarnpkg.com/xml-sax-ts/-/xml-sax-ts-0.3 .0.tgz#ab5c94cd6744478c233990618122b8aef3494eb4 "
4428- integrity sha512-alzmBPfcZBQyfzlFPUlXxGpSyGP2iBHvQWiOZxzdQaYKPccqtZyFJ+aPBjruCstRnJj0Q/zlHYOuEMfNkUEU9g ==
4425+ xml-sax-ts@^0.4 .0 :
4426+ version "0.4 .0"
4427+ resolved "https://registry.yarnpkg.com/xml-sax-ts/-/xml-sax-ts-0.4 .0.tgz#0902df2e7d3cc0facc8cf0c976d2c425e283c29e "
4428+ integrity sha512-u40hxAXZTwVGIyo/Lbx09PzIO/d2JkOUG004wSSpQxv++faMjZiV7EhB6Ev8kr82vJUiUXmmvIoa++K7lgJOjQ ==
44294429
44304430y18n@^5.0.5 :
44314431 version "5.0.8"
You can’t perform that action at this time.
0 commit comments