Comunidad de diseño web y desarrollo en internet online

FLEX textArea carga xml con html tags

Citar            
MensajeEscrito el 01 Sep 2008 02:32 pm
Hola a todos, tengo un problema a la hora de cargar datos de un xml cuando a los datos de este les pongo html tags. Cuando el xml esta limpio sin código html esto funciona barbaro. Se que tiene que ver con la aplicación de la propiedad html="true" y demas, pero lamentablemente no lo pude lograr. Me está carcomiendo la cabeza. Podrian ayudarme por favor? Gracias.

//el xml

Código :

<xml>   
            <node c1="46253" c2="75672"/>
            <node c1="76665" c2="65786"/>
            <node c1="34655" c2="57895"/>
            <node c1="56455" c2="84566"/>
            <node c1="45656" c2="23478"/>
</xml>


//el mxml

Código :

<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="dgXMLrqst.send()">
<mx:HTTPService id="dgXMLrqst" url="xml/xml.xml" useProxy="false"/>

<mx:Script>   
        <![CDATA[
[Bindable]
public var selectedEntry;     
        ]]>
</mx:Script>
 
<mx:DataGrid x="20" y="20" id="dg" width="231" height="167" dataProvider="{dgXMLrqst.lastResult.xml.node}" change="selectedEntry=event.target.selectedItem">
 <mx:columns>
  <mx:DataGridColumn headerText="col1" dataField="c1"/>
  <mx:DataGridColumn headerText="col2" dataField="c2"/>
 </mx:columns>
</mx:DataGrid>
<mx:Text x="259" y="23" text="aca aparece el atributo &quot;c1&quot;" width="199" height="22" color="#D34919"/>      
<mx:TextArea x="259" y="41" width="199" height="88" text="{selectedEntry.c1}"/>   
</mx:WindowedApplication>


Una cosita mas, como hago para que cuando arranca la aplicación el textArea no aparezca en blanco y muestre el contendido del primer dato (columna 1)? Chau.

Por COOKERNATOR

43 de clabLevel



Genero:Masculino  

msie7
Citar            
MensajeEscrito el 01 Sep 2008 02:37 pm
Perdon por mandar la pregunta 2 veces es que me habia olvidado de ponerle los code tags. Respondanme please.

Por COOKERNATOR

43 de clabLevel



Genero:Masculino  

msie7

 

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