Comunidad de diseño web y desarrollo en internet online

Captando de xml problema con urls

Citar            
MensajeEscrito el 03 Oct 2007 07:58 am
Hola,

a ver si alguien me puede ayudar ya que despues de encontrar varios temas en el foro que parecia que me podian ayudar mis resultados han sido fallidos.

Tengo un xml con una estructura como esta:

Código :

<?xml version="1.0" encoding="iso-8859-1"?>
<Dipositivas>
<photos>
<photo_26>
<imagen>659_flaviaestrena.jpg</imagen>
<link>http://www.google.com</link>
</photo_26>
<photo_25>
<imagen>4FD_lariimprorrogable.jpg</imagen>
<link><![CDATA[http://www.google.com/productos.asp?tipo=Teatro&variable=14]]></link>
</photo_25>
</photos>


Bien, luego en flash tengo este código:

Código :

_root.file ="xml/diapositivas.xml";
System.useCodepage = true; 

xmlfile = new XML();
imagenes = new Array();
links = new Array();

xmlfile.onLoad = function(success) { 
      if(success) {
          for (var i=0; i < this.firstChild.childNodes[0].childNodes.length; i++) {
   paths.push(this.firstChild.childNodes[0].childNodes[i].firstChild.childNodes[0]);
   links.push(this.firstChild.childNodes[0].childNodes[i].childNodes[1].firstChild);
   trace(links[1]);
          }
     }
       delete xmlfile;
};


El problema es que los carácteres especiales de las url como el ampersand me los interpreta &amp;. He probado cambiando el encoding="UTF-8" del xml y con System.useCodepage = true;
pero no hay manera.

Alguien me puede ayudar?
Muchas gracias

Por greensuko

1 de clabLevel



 

msie
Citar            
MensajeEscrito el 03 Oct 2007 07:59 am
aaah... y tambien he probado con cdata y sin.

Por greensuko

1 de clabLevel



 

msie

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.