Ver Mensaje Individual
  #2 (permalink)  
Antiguo 31/10/2005, 15:07
Avatar de luistar
luistar
 
Fecha de Ingreso: marzo-2005
Ubicación: Argentina
Mensajes: 939
Antigüedad: 19 años, 1 mes
Puntos: 0
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);
    }

__________________
Si digo que soy mentiroso. ¿Lo soy?