Hi Luiz


Isn't the operator that's wrong, you just missed out how to pass String and concatening in both side of wall.

Check out this heck of how could be done.

public function myList():void
{
           var myXML = new XMLList("<dsRQ><root><request/></root></dsRQ>");
           szCommand = "insert";
           if( [EMAIL PROTECTED] = szCommand == true)
              {
                  Alert.show(xgravar.toString());
               }
                 else {
                     Alert.show(xgravar);
              }
}


The problem is, you are trying to convert an object twice in time in the same function, that's why the problem happens. if you put anything in braces <> than you convert to string, the compiler intend to undrestand that, "ok the users now want to convert that cacharecter".


Regards.

szCommand = "insert";
[EMAIL PROTECTED] = szCommand;

Alert.show(XMLLC.toXMLString()); // OK here. all < and >
works fine

xgravar.root.request += XMLLC;

Alert.show(xgravar.toXMLString()); // ERROR here. < and >
converted to &lt and &gt
}







On 10/24/06, Luis Eduardo <[EMAIL PROTECTED]> wrote:


hi,

In my app, when i use the += operator, the data inside xmls turns with
diferent encoding.
The < and > caracters become wierds like &lt and &gt respectively.

How can i fix this?

this is the code:

public function doGravar():void {
var xgravar:XMLList = new
XMLList("<dsRQ><root><request/></root></dsRQ>");

szCommand = "insert";
[EMAIL PROTECTED] = szCommand;

Alert.show(XMLLC.toXMLString()); // OK here. all < and >
works fine

xgravar.root.request += XMLLC;

Alert.show(xgravar.toXMLString()); // ERROR here. < and >
converted to &lt and &gt
}

where XMLLC : XMLListCollection and szCommand : String.
The first Alert will show correct data but the second will show
caracters converted.

regards,

Luís Eduardo.


_______________________________________________________
Novidade no Yahoo! Mail: receba alertas de novas mensagens no seu celular. Registre seu aparelho agora!
http://br.mobile.yahoo.com/mailalertas/





--
----------------------------
Igor Costa
www.igorcosta.com __._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to