<catalog><channel><id>4</id>
<name>News</name>
<shortDescription>News happens!</shortDescription>
<subscribe>true</subscribe></channel>
<channel><id>10</id>
<name>Jokes</name>
<shortDescription>funny jokes!</shortDescription>
</channel>
<channel><id>5</id><name>Markets</name<keyword>cc-markets</keyword>
<shortDescription>Track the market's movers & shakers at-a-glance.</shortDescription>
</channel>
</catalog>
私はタグ "name"の間にデータを取得したいが、名前 "name"を持つ多くのタグを持っているが、すべてのタグは解析されていないので、XMLはデータ "Markets "これは今かなりの時間私をイライラさせている。どんな助けでも大歓迎です。次のhttpresponseを解析するにはどうすればよいでしょうか、それを解析する最善の方法は何ですか?
私は知っていますが、SAXパーサは特殊文字 "&"の後にデータを解析しないので、DOMパーサーにも苦労しました。何が最善の方法でしょうか? –
ここでは、SAXの解析中に "&"文字を処理する方法についての議論がありますhttp://stackoverflow.com/questions/7798411/how-to-read-escaped-characters-using-sax-parser-in-characters-method – kosa
SAXparsingを続行する必要がありますか? –