cooper
cooper

Reputation: 1560

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 someone suggest how this can be done? I thought if I put in Declarations, it would work, but doesn't seem to be the case.

Upvotes: 1

Views: 644

Answers (1)

James Ward
James Ward

Reputation: 29433

Try:

<fx:XML>
...
</fx:XML>

Upvotes: 3

Related Questions