The
The <fx:XML> tag contains a data in tree format. It is
just like a <fx:Model> tag.
The flex builder compiles the <fx:XML> tag into literal XML data. You can use
this data in a component by using dataprovider property.
The tag is <fx:XML>.
The Syntax is given below.
<?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"xmlns:s=" library://ns.adobe.com/flex/spark"xmlns:mx=" library://ns.adobe.com/flex/mx"minWidth=" 955" minHeight="600"> <fx:Declarations> <fx:XML id="employee" format="e4x"><employee> <name> <first>{firstName.text}</first> <last>{lastName.text}</last> </name> <department>{department.text}</department> <email>{email.text}</email> <phoneno>{phone.text}</phoneno> </employee> |
<?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"xmlns:s=" library://ns.adobe.com/flex/spark"xmlns:mx=" library://ns.adobe.com/flex/mx"minWidth=" 955" minHeight="600"> <fx:Declarations> <fx:XML id="employee" format="e4x"><employee> <name> <first>{firstName.text}</first> <last>{lastName.text}</last> </name> <department>{department.text}</department> <email>{email.text}</email> <phoneno>{phone.text}</phoneno> </employee> </s:Application> |
To view this page ensure that Adobe Flash Player version 10.0.0 or greater is installed.