diff --git a/packages/studio-web/src/app/editor/editor.component.ts b/packages/studio-web/src/app/editor/editor.component.ts index df73a744..dc0814cf 100644 --- a/packages/studio-web/src/app/editor/editor.component.ts +++ b/packages/studio-web/src/app/editor/editor.component.ts @@ -274,8 +274,9 @@ export class EditorComponent implements OnDestroy, OnInit, AfterViewInit { const serializer = new XMLSerializer(); const xmlString = serializer .serializeToString(element) - .replace("arpabet=", "ARPABET="); - console.log(xmlString); + .replace("arpabet=", "ARPABET=") + .replace(/xmlns="[\w\/\:\.]*"/g, ""); + //console.log(xmlString); this.editorService.rasControl$.setValue( parser.parseFromString(xmlString, "text/xml"), ); // re-parse as XML