This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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 REST with Spring (video course) this week in the Spring forum!
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
It is sorta covered in the JavaRanch Style Guide.
subject: appending xml document
It's not a secret anymore!