vestro XML me parece que esta mal
la segunda etiqueta no tiene cierre
<respuesta name="resumen_datos_grupo_familiar">
si le quitas esa linea, creo que ira bien
prueba esto
aer.xml:
Código:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<asegurado>
<cli_rut>13137675</cli_rut>
<dig_ver>8</dig_ver>
<cli_ape_materno>Piggy</cli_ape_materno>
<cli_fec_nacimiento>
<dia>16</dia>
<mes>9</mes>
<anio>1977</anio>
</cli_fec_nacimiento>
<cli_sexo>1</cli_sexo>
</asegurado>
en flash:
Código PHP:
algo = new XML();
algo.ignoreWhite = true;
algo.load('aer.xml');
algo.onLoad = function(ok){
if(ok){
var hijos:Array = this.firstChild.childNodes;
trace(hijos[0].firstChild.nodeValue);
trace(hijos[1].firstChild.nodeValue);
trace(hijos[2].firstChild.nodeValue);
trace(hijos[3].childNodes[0].firstChild.nodeValue);
trace(hijos[3].childNodes[1].firstChild.nodeValue);
trace(hijos[3].childNodes[2].firstChild.nodeValue);
trace(hijos[4].firstChild.nodeValue);
}
}