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!

Clientside parsing of XML

Status
Not open for further replies.

Draug

Programmer
Apr 18, 2001
77
CA
Hi,

I have a java servlet that generates an XML string. Currently, I have a Javascript/HTML page on the client that requests the string from the servlet and uses the XML data in the page.

Right now, I use the DOM parser included in IE 5 to do the loading and parsing of the XML on the client side and everything works perfectly. Of course, I cannot assume that the client will have IE 5. So, is there a parser that I can use on the clientside without changing anything on the serverside that will allow me to use different browsers?

Thanks for the help.
 
I forgot to mention that I am using only Javascript and HTML on the client side. Unfortunately, due to circumstances out of my control, I cannot commit to using JSP or ASP, so the only tools I have on the client side are HTML and JavaScript.

Is what I want to do possible, and what parser should I use?
 
Hello Draug
I need the same code .Actually I want to read a xml file client side .Can you pls send me this code on my mail id I will be very thankfull to you .my mail id is amit_ah@lycos.com .
Thank you
Amit
 
Hi Draug,

Parsing xml without a parser is like wanting to drive without a car: it won't work.

A solution you might consider is to wrap the action you want to perform clientside into a dll, and sign this dll so it will be downloaded and installed on the client.

This way you could perform a call to your dll in javascript and recieve whatever you want your function to return.

I hope this makes any sense?

If not, post it, so I can clearify it.

Jordi Reineman
 
Ya, this in a unique solution. I had never thought of that. What we did was just insist on developing for IE 5+ and then use the MS parser. The system is built for Intranet anyway, and they run IE, so it was not a big deal.

Thanks
 
Ya, the dll is a unique solution that would probably work pretty good. I had never thought of that. What we did was just insist on developing for IE 5+ and then use the MS parser. The system is built for Intranet anyway, and they run IE, so it was not a big deal.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top