jQuery xml2json插件在IE中不起作用

时间:2013-02-05 21:58:51

标签: jquery xml json internet-explorer

我正在使用jQuery xml2json插件(http://www.fyneworks.com/jquery/xml-to-json/)将xml解析为json,但它在IE中无法正常工作。我想知道是否有人可以帮我处理这件事。

这是我要转换为json的xml示例:<?xml version='1.0' encoding='iso-8859-1' standalone='no'?> <context> <object objid="228" author="johnDoe" creation-date="2012-10-24 22:55:09.0" last-updated="2012-10-24 22:55:09.0" type="objectType" name="ojectTest" availability="public" status="active"> <attribute-set> <attribute attid="399" name="Geo-Location" value=" 12.1234567_-32.1234567" time="2012-10-24 22:56:10.0"/> </attribute-set> <relation-set> </relation-set> </object></context>

提前致谢。

1 个答案:

答案 0 :(得分:0)

也许IE的单引号有问题。尽量只使用双引号

<?xml version="1.0" encoding="iso-8859-1" ...