mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-14 18:12:09 +08:00
@ -44,9 +44,12 @@ async function parseXML(content: string): Promise<ParseResult> {
|
||||
|
||||
const saxParser = parser(true, { xmlns: true });
|
||||
|
||||
// // Register ios and android prefixes as namespaces to avoid "unbound xml namespace" errors
|
||||
// // Register platform prefixes as namespaces to avoid "unbound xml namespace" errors
|
||||
(saxParser as any).ns['ios'] = 'http://schemas.nativescript.org/tns.xsd';
|
||||
(saxParser as any).ns['visionos'] = 'http://schemas.nativescript.org/tns.xsd';
|
||||
(saxParser as any).ns['apple'] = 'http://schemas.nativescript.org/tns.xsd';
|
||||
(saxParser as any).ns['macos'] = 'http://schemas.nativescript.org/tns.xsd';
|
||||
(saxParser as any).ns['win'] = 'http://schemas.nativescript.org/tns.xsd';
|
||||
(saxParser as any).ns['android'] = 'http://schemas.nativescript.org/tns.xsd';
|
||||
(saxParser as any).ns['desktop'] = 'http://schemas.nativescript.org/tns.xsd';
|
||||
(saxParser as any).ns['web'] = 'http://schemas.nativescript.org/tns.xsd';
|
||||
|
Reference in New Issue
Block a user