aspose file tools*
The moose likes XML and Related Technologies and the fly likes appending xml document 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 "appending xml document" Watch "appending xml document" New topic
Author

appending xml document

katyayan agrawal
Greenhorn

Joined: May 05, 2001
Posts: 11
Dear Friends
I am trying to append an existing xml document using appendChild() method but it doesnot write to the existing xml document & neither throws any exception.Can anybody give me some idea,how i can achieve this?
rani bedi
Ranch Hand

Joined: Feb 06, 2001
Posts: 358
Can you show us the code?


Cheers,<br />Rani<br />SCJP, SCWCD, SCBCD
Suresh Bansal
Ranch Hand

Joined: Jul 23, 2001
Posts: 91
Try printing the node, this will prove if the node you are trying to append is being created properly.
In case you are appending a node from some other tree you need to do a importNode.


Journey is as important as the Destination.<br /> <br />PMP, SCJP, SCJD, SCEA (Part 1), SCMAD, SCDJWS
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: appending xml document
 
Similar Threads
creating a new xml document
JAXP/W3C DOM Question
Help making XML request from servlet
Insert JPEGs into XML
create xml document by xpath in java