Bookmark Topic Watch Topic
  • New Topic

Problem with adding an XML node to an existent XML File  RSS feed

 
Hugo Alberto Bedolla
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Report post to moderator
I got a problem when trying to write a new node to an xml file, basically the new node isn't appended to the file. I tried to write to another file, but in both cases, only the old data appears... what am I doing wrong? :S


Here's my code:

Thanks in advance.
 
Pranav Raulkar
Ranch Hand
Posts: 73
Android Java Netbeans IDE
  • Likes 1
  • Mark post as helpful
  • send pies
  • Report post to moderator
Have a look at this

http://www.daniweb.com/software-development/java/threads/255757

Hope this helps.
 
Rob Spoor
Sheriff
Posts: 20903
81
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hugo, please UseOneThreadPerQuestion. This is the same question as here. Since the other thread has more replies I'm closing this one.
 
It is sorta covered in the JavaRanch Style Guide.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!