wood burning stoves 2.0*
The moose likes XML and Related Technologies and the fly likes Problem with adding an XML node to an existent XML File Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply locked New topic
Author

Problem with adding an XML node to an existent XML File

Hugo Alberto Bedolla
Greenhorn

Joined: Nov 09, 2010
Posts: 17
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

Joined: Apr 20, 2011
Posts: 73

Have a look at this

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

Hope this helps.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19543
    
  16

Hugo, please UseOneThreadPerQuestion. This is the same question as here. Since the other thread has more replies I'm closing this one.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with adding an XML node to an existent XML File
 
Similar Threads
importing one xml in another
unable to remove spaces in xml
problem in deleting the file
Problem with adding an XML node to an existent XML File
Help regarding how to check the element entered is equal or not in xml file