Es que no conozco el nombre de la etiqueta, y molaría hacer algo como:
miXml..(@id == "contenido")
Yo me he hecho una función recursiva así:
function getElementById(data:XML, id:String):XML{
var element:XML;
loop(data);
function loop(branch:XML):void {
var l:uint = branch.elements().length();
for(var i:uint = 0; i < l; i++) {
var subBranch:XML = branch.elements()[i];
if(subBranch.@id == id){
element = subBranch;
return;
}
// si la rama tiene hijos lo hago recursivo
if (subBranch.hasComplexContent()) {
loop(subBranch);
}
}
}
return element;
}
que funciona bien, pero molaría mas lo otro :)
Gracias.
Algo asi te debería de tirar
Joseba
> --
> -----------------------------------------------------------------------
> ASNativos
> www.5dms.com
> subscripciones/desubscripciones
> http://asnativos.5dms.com
> -----------------------------------------------------------------------
>
> To unsubscribe, reply using "remove me" as the subject.