JavaScript的XML解析器 [英] XML parser for JavaScript

查看:124
本文介绍了JavaScript的XML解析器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要寻找一个很好的JavaScript库解析XML数据。它应该是更容易使用比内置的 XML DOM解析器,提供浏览器捆绑

I am looking for a good JavaScript library for parsing XML data. It should be much easier to use than the built-in XML DOM parsers bundled with the browsers.

我被宠坏了一下使用JSON工作,我期待着类似的路线东西XML。

I got spoiled a bit working with JSON and am looking forward to something on similar lines for XML.

推荐答案

我使用的jQuery 这一点。这里是一个很好的例子:

I use jQuery for this. Here is a good example:

(编辑:注意 - 以下博客似乎已经消失)

( Note - the following blog seems to have gone away.)

http://blog.reindel.com/2007 / 09/24 / jQuery的-和XML的重新/

也有很多很多的rel=\"nofollow\"> jQuery的文档中的

There are also lots and lots of good examples in the jQuery documentation:

http://www.webmonkey.com/tutorial/Easy_XML_Consumption_using_jQuery?oldid=20032

编辑:由于博客为我的首要例如要走了,我想补充一个例子,显示基础和空间问题的帮助:

Due to the blog for my primary example going away, I wanted to add another example that shows the basics and helps with namespace issues:

http://www.zachleat.com/web/selecting-xml -with的JavaScript /

这篇关于JavaScript的XML解析器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆