How to do this XML declaration in Flex4
I have a dataProvider that's defined with mx:XML
like this.
<mx:dataProvider>
<mx:XML format="e4x">
<root label="All Items">
<morning label="Evening" type="check" />
<evening label="Evening" type="check" />
<night label="Night" type="check" />
</root>
</mx:XML>
</mx:dataProvider>
This doesn't seem to be a valid option anymore with the new spark architecture. Can s开发者_运维技巧omeone suggest how this can be done? I thought if I put in Declarations, it would work, but doesn't seem to be the case.
Try:
<fx:XML>
...
</fx:XML>
精彩评论