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]
# 1

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

java_2006a at 2007-7-29 15:00:36 > top of Java-index,Java Essentials,New To Java...
# 2

u can take the help of the url

http://www.onjava.com/pub/a/onjava/2002/06/26/xml.html

Prem_Sa at 2007-7-29 15:00:36 > top of Java-index,Java Essentials,New To Java...