views:

459

answers:

2

Hi,

We've sets of webservices and we have to make request on clientside (sending request to getting response in a jason format, and parsing XML document through - having XSLT support would be great).

We need a Javascript library which will be independently responsible to all the above work and should handle browser compatibility issues.

I did some googling and at this moment this looks a appropriate option to catch: http://www.webmonkey.com/tutorial/Easy_XML_Consumption_using_jQuery?oldid=20032

Please, suggest if this would be a fair choice or am missing anything.

Thanks.

+2  A: 

Check Sarissa library out. It brings many pseudo-standard (implemented in every browser but IE) XML APIs to Internet Explorer, such as DOMParser, XMLSerializer, XSLTProcessor.

Sergey Ilinsky
The problem is IE is a priority :)
Ramiz Uddin
So use the recommended library - it normalizes APIs across all browsers. Even if you only target IE, using that API is better than working directly with ActiveX-based objects.
Sergey Ilinsky
Thanks. I'll definitely going to read about it in detail. Actually, I need something which is compatible to all browsers and if there is no such solution for it then I will put IE in a priority. As you said it will work with IE then there is no issue to give it a try. Thanks for the help.
Ramiz Uddin
Hi Sergey, I am also considering jquery for XML parsing. Could you please suggest will that be a good choice to go with. Here what I am considering: http://www.webmonkey.com/tutorial/Easy_XML_Consumption_using_jQuery?oldid=20032
Ramiz Uddin
Ramiz, I guess you are considering using jQuery not for XML parsing but for DOM traversing. If so, I am not sure if jQuery works properly with XMLDOM (that is different in IE from HTMLDOM, for example). Try anyway.
Sergey Ilinsky
A: 

I know one a XML parser that is provided by openjs.

Please do visit the site

There is one library provided by JASON. You can find more details here

Umesh Aawte
I doubt Ramiz was asking for a true XML parser - why would someone need one? All browsers support XML DOM natively
Sergey Ilinsky