I would suggest that you do not think in terms of "reading the file". Rather, use e4x to find the node you want to process, then go from there.
OTOH, it is acceptable to manipulate an XMLList, especially if your data is a single level. Tracy Spratt Lariat Services Flex development bandwidth available ________________________________ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Sam Lai Sent: Friday, February 20, 2009 4:12 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] XML Parsing - maintaining a record pointer You could use a different variable name in the inner loop, that way it won't change the object in the outer loop. On 2/21/09, Libby <libbychan...@yahoo.com <mailto:libbychantel%40yahoo.com> > wrote: > hi, flexCoders! > thanks for all ur help in the past! > > Does Flex maintain your record pointer while reading an xml file? > basically what i want to do is read each line and when I hit certain > values, read on for 4 or 5 records, then return to the original > process without starting back at the last record read at the first > read. I can do this the hard way of course by maintaining my own > pointer and treating the file as a giant array, but surely there is an > easier way? > > > for each (var xmlNode:XML in xml.children()) { > // do stuff > // if(xmlNode.something==aValue) { > for each (var xmlNode:XML <---- read on into the file > > thanks, > Libby > > > > ------------------------------------ > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt <http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt> > Alternative FAQ location: > https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf- 1e62079f6847 <https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf -1e62079f6847> > Search Archives: > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo <http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo> ! Groups Links > > > >