(el xml algo mas claro aqui http://musicbrainz.org/ws/2/artist?query=marea)
Código:
<metadata xmlns="http://musicbrainz.org/ns/mmd-2.0#" xmlns:ext="http://musicbrainz.org/ns/ext#-2.0"> <artist-list offset="0" count="3"> <artist ext:score="100" type="Group" id="da4fb281-2156-442c-87ad-0e02e8a86077"> <name>Marea</name> <sort-name>Marea</sort-name> <country>ES</country> <life-span> <begin>1997</begin> <ended>false</ended> </life-span> <tag-list> <tag count="1"> <name>rock</name> </tag> <tag count="1"> <name>spanish rock</name> </tag> </tag-list> </artist> <artist ext:score="62" type="Person" id="dc657011-6fb3-41d5-916b-ddd616fac802"> <name>Marea Stamper</name> <sort-name>Stamper, Marea</sort-name> <gender>female</gender> <country>US</country> <disambiguation>Lady Foursquare, Black Madonna</disambiguation> <life-span> <ended>false</ended> </life-span> <alias-list> <alias>M Stamper</alias> </alias-list> </artist> <artist ext:score="50" id="d02bd4a7-8418-41ed-86e6-141b7a98ce0a"> <name>Tony Y Marea Alta</name> <sort-name>Tony Y Marea Alta</sort-name> <life-span> <ended>false</ended> </life-span> </artist> </artist-list> </metadata>
estoy probando con cosas del estilo de
for each(var nodo:XML in xml.child("artist-list").elements()){
o
for each(var nodo:XML in xml["artist-list"].elements()){
pero nada, como mucho con
for each(var nodo:XML in xml.elements()){
consigo meterme un nivel, pero ahi me quedo, en el artist-list