私はこの質問で正確に何を意味するかをできるだけ明確に説明しようとします。xml iPhoneで解析して同じ名前の他のタグを取得する
がXMLの代わりにこの
<Books>
<Book id="1">
<title>Circumference</title>
<author>Nicholas Nicastro</author>
<summary>Eratosthenes and the Ancient Quest to Measure the Globe.</summary>
</Book>
<Book id="2">
<title>Copernicus Secret</title>
<author>Jack Repcheck</author>
<summary>How the scientific revolution began</summary>
</Book>
</Books>
私は上記のサイトの指示に従った場合それは今、この
<Books>
<Book id="1">
<title>Circumference</title>
<author>Nicholas Nicastro</author>
<summary id ='1'>Eratosthenes and the Ancient Quest to Measure the Globe.</summary>
<summary id ='2'>Eratosthenes more info in another tag.</summary>
<summary id ='3'>Eratosthenes and again another tag.</summary>
<summary id ='4'>Eratosthenes and the final tag another one here</summary>
</Book>
<Book id="2">
<title>Copernicus Secret</title>
<author>Jack Repcheck</author>
<summary id ='1'>How the scientific revolution began</summary>
<summary id ='2'>Eratosthenes more info in another tag.</summary>
<summary id ='3'>Eratosthenes and again another tag.</summary>
<summary id ='4'>Eratosthenes and the final tag another one here</summary>
</Book>
</Books>
のようになります。
のように見える、それは要約を処理する方法を説明していません2,3,4(xmlはそのように見える必要があります)と出力の表示方法私が得るのは最後の行だけです。誰も私が他のものをどのように得ることができるかについてのアイデアを持っていますか(この場合2,3は、おそらく最後のものをcurrentElementValueの最後に表示するように見えます)。
ここでも属性を指定する必要がありますか、パーサーに新しい検索タグを作成する必要がありますか?
thnxたくさん..私はこれを調べるつもりです...残念ながら私はキーを読む必要がある私が思うより良い理解を得るためにコーディングする文書)。 –