Hello yes there is problem that if we try to use "&" in AS directly.
but alternate option is use external xml using HTTPService. in that case you get perfect result as you require. Thanks v...@t Patel On May 6, 4:06 pm, hari <[email protected]> wrote: > i used cdata node also.......... > but same thing repeating.......... > > On May 6, 11:24 am, Amit <[email protected]> wrote: > > > Better you use a CDATA node... > > > On May 6, 10:49 am, hari <[email protected]> wrote: > > > > hi all, > > > > How to add ampercent in xml node....... > > > this is the sample code....... > > > here i am giving & but its displaying as &amp; > > > > plz chk the code below..... > > > > <?xml version="1.0" encoding="utf-8"?> > > > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" > > > initialize="createXML();" layout="absolute"> > > > <mx:Script> > > > <![CDATA[ > > > import mx.controls.TextArea; > > > import mx.controls.Text; > > > import mx.controls.Alert; > > > private function createXML(): void > > > { > > > var xm:XML = <Relyon></Relyon>; > > > var nodeName:String = "EMPLOYEENAME"; > > > var nodevaule:Text=new Text(); > > > nodevaule.text="&"; > > > var xmlList:XML = <nodeName>{nodevaule.text}</nodeName>; > > > xm.appendChild(xmlList); > > > Alert.show(xm.toXMLString());} > > > > ]]> > > > </mx:Script> > > > </mx:Application> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~---

