开发者

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>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜