2
我想阅读这个XML与jQuery或其他更容易。阅读与jQuery XML
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Film SYSTEM "film_commentaries_opinion.dtd">
<Film lang="fr" title="Mixed" originalTitle="">
<Actors>
</Actors>
<Comments>
<Comment>films adapted from comic <Tag length="5" />books have had plenty
of success, whether they're about superheroes (batman, superman, spawn),
or geared toward kids (casper) or the arthouse crowd (ghost world), but
there's never really been a comic <Tag length="4" />book like from
hell before. For starters, it was created by Alan Moore
(and Eddie Campbell), who brought the medium to a whole new level in the
mid '80s with a 12-part series called the watchmen.</Comment>
</Comments>
</Film>
当然我不能改变我的皇帝丰富的客户端提供的XML,当然我想要找回这个词“书”和单词“书”。 <Tag />
给我一个“长度”,它表示我需要选择的以下单词的长度。
我该怎么做?
现在我用:
$.ajax({
type: 'GET', url: 'data/mergedXML_PangLee.xml.tag.xml', dataType: 'xml',
success: function(xml) {
var tags = $(xml).find("Tag");
// other code here...
}
请告诉我问题吗? – ManseUK
您错过了提问的部分 –
我想检索单词“books”和单词“book”。我怎样才能做到这一点? – enguerran