Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Adding data to an XML file?

 
Sam Smith
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
I have created a JSP form that passes infromation into a javabean. I need to add this data to an existing XML document. Is there an easy way to do this using DOM? Using another JSP page I can create a new XML page from the form data using the class DocumentBuilderFactory, would it then be easier to combine the two XML files, how can I do this? Any ideas or links to tutorials on this subject will be much appreciated as I am way stuck.
Thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64188
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to the XML and Related Technologies forum where I think you'll get better responses.
bear
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The tuorial understanding DOM might help you to learn add/modify/remove xml using DOM
 
Sam Smith
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cheers for that link, just what I was after.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic