Page 1 of 1

Quick conversion from qualified to unqualified elements in an XML instance?

Posted: Tue Feb 28, 2017 12:45 pm
by mhGLEIF
Is there a quick way in oXygen Editor to convert from qualified to unqualified elements in an XML instance?

I'd like to quickly and easily flip between having a prefix on all elements and having no prefix, while at the same time updating the namespace declarations to be consistent.

Is this feature in oXygen somewhere already? Sorry if I am missing it!

Re: Quick conversion from qualified to unqualified elements in an XML instance?

Posted: Tue Feb 28, 2017 1:48 pm
by Costin
Hi mhGLEIF,

In oXygen you have the possibility to rename (and implicitly add or remove) specific prefixes in your XML documents.
To remove a specific prefix for elements in a document, you should position the cursor on an element having that specific prefix, right-click and - from the context menu - select Refactoring > Rename Prefix.
The following Rename dialog provides the possibility to choose a replacement prefix (to remove the prefix you should just leave the "New Prefix Name" blank).
Furthermore, you can apply the refactoring action for all the elements in the document that share the same prefix as well as for attribute values.

Regards,
Costin