XML Development

Moderators: None (Apply to moderate this forum)
Number of threads: 257
Number of posts: 456

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Saving data from jsp to xml Posted by Katerina on 6 Oct 2001 at 10:43 AM
I am using Xerces (apache.org), 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,
Katerina

Report
Re: Saving data from jsp to xml Posted by ashwin on 11 Nov 2001 at 1:45 PM
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 ashwin@obd.com






 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.