Saving data from jsp to xml

I am using Xerces (, which contains the Xerces Dom parser. So far, I have managed to load data from an xml file to a jsp page. But I haven't been able to do the opposite, that is, save data from the jsp page to my xml file. What I am trying to do is load the data from an xml file, alter them in some way and save the changes. Someone advised me to use the dom commands "serialize" and the "treeWalker". What do I have to do?
Thanks in advance,


  • Well I too had to do the same. I am not sure if its the best method. First you will have to identify the node that you are going to change. Then you will extract that node. Then parse that node and then create a similar node of the same structure. And also add values to it. Finally replace the old node with the new node.

    For code example which I did you can mail me at [email protected]

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion