my dog learned polymorphism*
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: 12792
    
    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
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.
 
GeeCON Prague 2014
 
subject: how to iterate through XML nodes in JSP?