File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes how to iterate through XML nodes in JSP? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "how to iterate through XML nodes in JSP?" Watch "how to iterate through XML nodes in JSP?" New topic
Forums: JSP XML and Related Technologies
Author

how to iterate through XML nodes in JSP?

Andrew Cane
Ranch Hand

Joined: Aug 07, 2013
Posts: 91
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

Joined: Mar 22, 2000
Posts: 12682
    
    5
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

Java Resources at www.wbrogden.com
Andrew Cane
Ranch Hand

Joined: Aug 07, 2013
Posts: 91
Wow, now it works. apparently I don't need to process it anymore. thank you very much. Cheers mate.
 
wood burning stoves
 
subject: how to iterate through XML nodes in JSP?
 
Similar Threads
what is this error
View Resolver doubt?
error compiling view with spring mvc project
Neither BindingResult nor plain target object for bean name 'command' available as request attribute
I have got this error when i try to run my spring web project.... what is this error?