开发者

Is there any easy to use Javascript XML library recommend? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate,开发者_如何学编程 arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 10 years ago.

I parse data using JSON in javascript, I find this is very convenient. But when I using XML, I need to look down every nodes. It seems that the XML is more complex. Is there any Javascript for erase some plain on creating and reading xml document? plx recommend.


Sarissa is an ECMAScript library acting as a cross-browser wrapper for native XML APIs. It offers various XML related goodies like Document instantiation, XML loading from URLs or strings, XSLT transformations, XPath queries etc and comes especially handy for people doing what is lately known as "AJAX" development.


I recommend JKL ParseXML It's a lightweight single-purpose library and works very well.


I have to throw in a plug for MooTools. Like jQuery, it greatly simplifies working with the DOM, and offers a great, very simple AJAX and JSON API as well.

http://mootools.net/


How about jQuery? I feel very comfortable manipulating and processing both html and xml data. Take a look at the following to give a hint on how it will be processing xml using jquery.

  • http://marcgrabanski.com/article/jquery-makes-parsing-xml-easy
  • http://think2loud.com/reading-xml-with-jquery/
  • http://www.webmonkey.com/tutorial/Easy_XML_Consumption_using_jQuery?oldid=20032

In case you want to know, jQuery is good at easing your life with JSON too, you may take a look at the getJSON function to know more about it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜