Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Displaying HTML from XML returned by a servlet

Status
Not open for further replies.

ionutdinulescu

Programmer
Jun 11, 2002
59
GB
I access the next link

servlets.PaymentService?command=status_payment_cluster&merchant_name=sss&merchant_transaction_id=001&payment_cluster_id=124&report_type=txt_simple

which returns a XML document.
Depending on its content, I must display a web page.
How can I do that?
I don't know how to parse the XML returned by the link above, but I know how to parse a local XML document.
Any help ?
 
what technology are u using? JAVA? ASP? PHP? What XML tool are you using? Xerces? JDOM?

If you are using java (servlets or servers) and JDOM you would do this:
try{
Document myXMLDoc = new org.jdom.input.SAXBuilder().build(new java.net.URL("}catch(Exception ue)
{}

However, it depends on whos technology you are going to use to deal with xml.

There are plenty of good XML tools out there, search for them on google. JDOM is just one of them. Heres a search to get you started.


hope that helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top