This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
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
Register / Login


JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply 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: 55
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: 55
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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: JDOM : Add namespace prefix to all child elements and all attributes
 
Similar Threads
XML: Order of elements, do they matter?
Nested Map
IllegalStateException: Cannot forward after response has been committed
parser problem in android
NoSuchBeanDefinitionException in Spring