Is there a way to select a certain number of nodes using e4x in Flex?
Say for example, I have an XML file with 100 "person" nodes, and I want the first 30. Or possibl开发者_Go百科y 51 - 100. Is there any way to do this with e4x syntax to return an XMLList?
var list:XMLList = xml.person;
var start:int = 10;
var end:int = 40;
var filteredList:XMLList = new XMLList();
for(i = start - 1; i < end; i++)
filteredList += new XML(XML(list[i]).toXMLString());
精彩评论