Since your nodes are empty, you are, in fact, retrieving everything you can by getting the attributes. You could get all the attributes at once with something like this:
var imageAttributes:XMLList; var attribArray:Array = new Array(); var children:XMLList = xmlData.children(); foreach(var child:XML in children) { imageAttributes = (XMLData.asset.attributes()); attribArray.push(imageAttributes); } Or, you could restructure your XML file to something like this: <asset type="IMAGE" url="www.google.com" size="1000"> <fileName> googlefilename </fileName> </asset> This is untested e-mail AS3, so there are likely bugs in it, but that's the approach I would use. Cordially, Kerry Thompson On Wed, Jun 8, 2011 at 11:46 AM, ACE Flash <acefl...@gmail.com> wrote: > right you could retrieve the attributes by doing that, but what I am going > to get is the node like this== > <asset type="IMAGE" url="www.google.com" > filename="googlefilename" size="1000"/> > > The reason I am asking this is because I need to merger two xml files, is > that possible to retrieve the entire node not just attributes? > > Thanks > > _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders