hi all, How to add ampercent in xml node....... this is the sample code....... here i am giving & but its displaying as &
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 -~----------~----~----~----~------~----~------~--~---

