File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Santhosh Kalisamy
Ranch Hand
Posts: 59
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 59
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic