开发者

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());
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜