This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan 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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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.
 
Don't get me started about those stupid light bulbs.
 
subject: Unable to write back the content to the XML file after removing an element
 
Similar Threads
need help in edit the xml using dom parser
How to create JAXB Context from File System
How to create a JAXB Context from File System
unbale to view xml file in browser
Pretty printing XML