Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
buntha Choudhary
Ranch Hand
Posts: 136
Android Eclipse IDE Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where do you write it back?
 
buntha Choudhary
Ranch Hand
Posts: 136
Android Eclipse IDE Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ya I got to know my mistake. I ressolved the bug.

Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic