Laissez-moi essayer d'expliquer aussi clair que possible ce que je veux dire exactement avec cette question.xml analyse dans l'iPhone et d'obtenir d'autres tags avec les mêmes noms
Le xml semble plutôt que ce
<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>
Il ressemblera à ceci
<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>
Maintenant, si je suis les instructions sur le site ci-dessus, il n'explique pas comment gérer sommaire 2,3,4 (le xml que j'ai besoin d'analyser ressemble à ça) et comment je peux montrer leur sortie. Tout ce que je vais obtenir est la dernière ligne. Est-ce que quelqu'un a une idée sur la façon dont je peux obtenir les autres aussi (ce qui signifie que dans ce cas, il semble ne montrer que le dernier puisque c'est probablement le dernier dans currentElementValue).
Je suis un peu confus si je devais traiter l'attribut ici ou devrais-je créer un nouveau tag de recherche dans mon analyseur?
beaucoup .. Je vais regarder dans ceci ... il semble prometteur malheureusement je vais devoir lire la clé document de codage pour obtenir une meilleure compréhension je pense;). –