This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes Unable to write back the content to the XML file after removing an element Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Unable to write back the content to the XML file after removing an element" Watch "Unable to write back the content to the XML file after removing an element" New topic
Author

Unable to write back the content to the XML file after removing an element

buntha Choudhary
Ranch Hand

Joined: Jul 03, 2009
Posts: 136

I am removing an element from an XML file , but I am unable to write back the content in XML . So XML is not getting modified.

XML File Name - E-mail.xml


I am removing Subject from the above XML .

Java Code

i
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Where do you write it back?
buntha Choudhary
Ranch Hand

Joined: Jul 03, 2009
Posts: 136

Ya I got to know my mistake. I ressolved the bug.

Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to write back the content to the XML file after removing an element
 
Similar Threads
Pretty printing XML
How to create JAXB Context from File System
need help in edit the xml using dom parser
unbale to view xml file in browser
How to create a JAXB Context from File System