Refactoring: add prefix/QName
Oxygen general issues.
-
- Posts: 2
- Joined: Wed Feb 17, 2021 3:01 pm
Refactoring: add prefix/QName
Post by UrbanHotbed »
Hi all,
I currently have to import a large set of XML data into a mixed-namespace environment, thus using namespace prefixes is mandatory.
Unfortunately the authors of the input file obviously assumed authoring standalone information and thus simply implemented their own namespace as default.
Yes, I’m aware I could write an XSLT to do the job…
Though: Is there a built-in functionality with XML Editor that might do the job of assigning a prefix to elements and/or attributes which have none yet ?
Any hint is welocm !!
Best,
Bardo
I currently have to import a large set of XML data into a mixed-namespace environment, thus using namespace prefixes is mandatory.
Unfortunately the authors of the input file obviously assumed authoring standalone information and thus simply implemented their own namespace as default.
Yes, I’m aware I could write an XSLT to do the job…
Though: Is there a built-in functionality with XML Editor that might do the job of assigning a prefix to elements and/or attributes which have none yet ?
Any hint is welocm !!
Best,
Bardo
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Refactoring: add prefix/QName
Hi,
If you open the XML document in Oxygen in the Text editing mode you can right click inside the root element tag name and choose "Refactoring->Rename prefix". You will have a choice to rename the prefix only on that element or on all elements in the document.
Regards,
Radu
If you open the XML document in Oxygen in the Text editing mode you can right click inside the root element tag name and choose "Refactoring->Rename prefix". You will have a choice to rename the prefix only on that element or on all elements in the document.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 2
- Joined: Wed Feb 17, 2021 3:01 pm
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Refactoring: add prefix/QName
Hi,
I'm glad this works for you, I added an internal issue to look into making the action faster on large XML docs.
Regards,
Radu
I'm glad this works for you, I added an internal issue to look into making the action faster on large XML docs.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service