i'm using apache digester-2.0 to convert XML to java beans and it's works fine. But now i've an evolution to do and the structure of the file is a bit more complex. Indeed now , my XML is like that :
<main>
*some properties here*
<objectCollection>
<object>
<id>foo</id>
<string>bar</string>
</object>
<object>
<id>foo</id>
<string>bar</string>
</object>
</objectCollection>
</main>
So , since now i've handled simple lines like
<title>foo</title>
But i don't find how to handle correctly the collection. Is there some good practice ? i guess i can do a loop on xml objectCollection node, but it seems very weird for me. Isn't a better method ?
Thx
Aucun commentaire:
Enregistrer un commentaire