XML response / Velocity template
Hi everyone,
I have a servlet which uses velocity engine to generate a soap request ,send it to a server and receive an xml response. How do I go about extracting the elements from the response and displaying them in a more readable format in a browser?
Any help appreciated,
Ruth
[307 byte] By [
sabatiera] at [2007-11-27 11:23:25]

you receive an XML reponse, so use an XML parser to prse and extarct the data you need.
use sax for example to do this.
here some examples:
http://www.onjava.com/pub/a/onjava/2002/06/26/xml.html
http://www.cafeconleche.org/books/xmljava/
http://totheriver.com/learn/xml/xmltutorial.html
hth