File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "appending xml document" Watch "appending xml document" New topic

appending xml document

katyayan agrawal

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:
subject: appending xml document
It's not a secret anymore!