首先,链接到 Flex 3 语言参考 - 查找这些内容必须有的书签。
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/index.html http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/index.html
XML http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/XML.html
XMLList http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/XMLList.html
XML列表集合 http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/collections/XMLListCollection.html
其次,我想说检查Examples
XMLList 的链接,因为它提供了 XML 和 XMLList 之间差异的一个很好的工作示例。
当您想要创建具有 XML 文档值的变量时,请使用 XML。
var mybooks:XML = <books>
<book>
<title>Book1</title>
</book>
<book>
<title>Book2</title>
</book>
</books>;
使用 XMLList 从 XML 变量创建数据子集。
var mybookTitles:XMLList = mybooks.title;
最后,XMLListCollection 类基本上是一个帮助程序类,用于获取 XML 或 XMLList 对象并在控件中使用它。
将此片段摘自mx.core.Repeater
其文档dataProvider
财产
If you set it to an XML or XMLList, it is converted into an XMLListCollection.
希望这可以帮助