aspose file tools*
The moose likes XML and Related Technologies and the fly likes JDOM : Add namespace prefix to all child elements and all attributes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "JDOM : Add namespace prefix to all child elements and all attributes" Watch "JDOM : Add namespace prefix to all child elements and all attributes" New topic
Author

JDOM : Add namespace prefix to all child elements and all attributes

Santhosh Kalisamy
Ranch Hand

Joined: Apr 15, 2008
Posts: 59
Hi,

I do have the below XML....



Please help me to convert this XML like below using JDOM or anyother JAVA XML framework...



Right now, it has been done with String Manipulation which I would like to replace with XML manipulation...
Santhosh Kalisamy
Ranch Hand

Joined: Apr 15, 2008
Posts: 59
I have used JDOM to travel through each child and added namespace...

Looks like, there is no direct way/method to add namespace to all child.

If anyone knows any other ways, please share...

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JDOM : Add namespace prefix to all child elements and all attributes