【发布时间】:2011-06-26 17:59:38
【问题描述】:
好的……
所以我得到了这个 XML 文件,我需要解析它....
<Current>
<Artists>
<![CDATA[ Artists of movie ]]>
</Artists>
<Title>
<![CDATA[ title of movie ]]>
</Title>
<Image/>
<Purchase/>
</Current>
...... // 以这种方式继续......
这是我的代码....
$(document).ready
(
function()
{
$.get("url of xml file ",{},
function(xml)
{
$("Current", xml).each
(
function(i)
{
author= $(this).find("Authors").text();
alert(author);
}
);
}
);
});
为什么它不起作用?请注意,此代码在 IE9 中 ... :( 我希望它不是浏览器 :(
【问题讨论】:
-
* OOPS - 注意上面我犯了一个错误,Javascript 代码中的标签作者应该阅读艺术家。非常感谢和道歉....
标签: jquery xml parsing internet-explorer-9 using