Buenos dias maestros, desde hace dias vengo dandole a un problema que no he podido resolver, y estoy por acá quien me da una ayuda.
El problema es que quiero mostrar los atributos "del hijo del hijo el cual tiene sus hijos tambien", creo que es asi

:
Código HTML:
<pa>
<hi1>
<hh1 id="es">
<hhh1>
............................................
<hhh1>
</hh1>
<hh1 id="co">
<hhh1>
............................................
<hhh1>
</hh1>
</hi1>
</pa>
Para que me entiendan mejor estos son los codigos que utilizo:
El XML:
Código:
<tiltviewergallery>
<photos>
<photo imageurl="img.jpg" linkurl="un_enlace">
<description>
<![CDATA[<font> info cualquiera </font>]]>
</description>
</photo>
</photos>
<photos>
<photo imageurl="img2.jpg" linkurl="un_enlace">
<description>
<![CDATA[<font> info cualquiera </font>]]>
</description>
</photo>
</photos>
</tiltviewergallery>
El HTML con el javascript
Código HTML:
<script src="prototype.js"/></script>
<script src="ObjTree.js"></script>
Código:
<script language="javascript">
function init(valorSelecto){
var galleryViewer= 'tiltviewer_soloTexto/'+valorSelecto+'/gallery.xml';
new Ajax.Request(galleryViewer, { onSuccess:hecho, onFailure:errFunc});
}
function errFunc(){}
function hecho(t){
var xotree = new XML.ObjTree();
tree = xotree.parseXML( t.responseText );
var projects=tree["tiltviewergallery"].photos.photo;
var txt="";
for(i=0;i<projects.length;i++){
txt+=projects[i].description+"<br>";
}
$('content').update(txt);
}
</script>
Código HTML:
<html>
<body>
<div id='content'></div>
</body>
</html>
La idea es sacar los atributos de <photo> osea: imageurl y linurl, pero le he dado y nada no encuentro como,
agradecería su ayuda gracias