In you inner loop, use the current node as the starting point for the XMLList expression:
for each (var p:XML in x..svnpath) Tracy ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Patrick McDaniel Sent: Monday, June 23, 2008 5:09 PM To: [email protected] Subject: [flexcoders] Populating Multiple Arrays in Flex using e4x Hello All, I'm having trouble figuring out how to populate two arrays in flex. Currently I have XML output that describes Subversion log information. So there are multiple logs and within those logs there are multiple files that have changed. My current (and wrong) approach is to run a for each loop find each svnlog and adding it to a value object I have. Inside each for each loop I run another loop over the paths to fill in the path's array inside my svnlog value object. The problem is that the second for loop picks up all the paths in the entire XML file or from all the log entries which is not what I want it to do. My XML looks like: <model> <entry> <string>revisionlog</string> <linked-list> <svnlog> <author></author> <date></date> <message></message> <revision></revision> <fileList class="linked-list"> <svnpath> <myPath></myPath> <myType></myType> <myCopyRevision></myCopyRevision> </svnpath> </fileList> </svnlog> </linked-list> </entry> </model> NOTE: there are multiple svnlog entries and each one has multiple svnpath's My code to transverse this (which is wrong) looks like: for each (var x:XML in evt.result..svnlog) { fill in some values for each (var p:XML in evt.result..svnpath) { fill in the path values } } Has anyone run into this before and can offer some help or point me in the right direction? Thanks, Patrick

