File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to iterate through XML nodes in JSP?

 
Andrew Cane
Ranch Hand
Posts: 91
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I sent an XML document in the form of org.w3c.dom.document object to JSP as attribute. Can anyone tell me how to iterate through the elements of the XML from the servlet in JSP? I tried using x:parse like so:


and got

thanks
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13048
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I sent an XML document in the form of org.w3c.dom.document object to JSP as attribute.


IF you already have a dom object, there is no need to parse anything, it has already been parsed.

Bill
 
Andrew Cane
Ranch Hand
Posts: 91
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wow, now it works. apparently I don't need to process it anymore. thank you very much. Cheers mate.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic