This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Santhosh Kalisamy
Ranch Hand
Posts: 63
  • 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: 63
  • 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...

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic