yishayw opened a new issue #1183: URL: https://github.com/apache/royale-asjs/issues/1183
If you look at this example ``` <?xml version="1.0" encoding="utf-8"?> <js:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:js="library://ns.apache.org/royale/basic" xmlns:local="*" pageTitle="HelloWorld" applicationComplete="init()"> <fx:Declarations> </fx:Declarations> <fx:Script> <![CDATA[ private function init():void{ var saveData:XML = new XML(<type/>); saveData.@id = "1"; //copy the ID if we have one for the edit case. saveData.@label = "test"; saveData.@datatype = "String"; saveData.@eventLocation = "Location"; lbl.text = saveData.toXMLString(); } ]]> </fx:Script> <js:valuesImpl> <js:SimpleCSSValuesImpl /> </js:valuesImpl> <js:initialView> <js:View width="100%" height="100%"> <js:Container width="100%" height="100%" > <js:Label id="lbl" text="Hello World" width="200" /> </js:Container> </js:View> </js:initialView> </js:Application> ``` The label is empty. But replacing `var saveData:XML = new XML(<type/>);` With `var saveData:XML = <type/>;` Shows the expected result. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
