That looks nested to me so there's be only one children() but many descendants()
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Matthew Ganz Sent: Wednesday, October 03, 2007 9:24 AM To: [email protected] Subject: [flexcoders] convert string to XML and access children. hi. i have a string returned from a java service and i convert it successfully to an XML object but somehow cannot access its elements appropriately. here's the string returned from the service: <gml:ProxyResponse xmlns:gml="http://www.opengis.net/gml"> <gml:MultiGeometry srsName="0"> <gml:geometryMember> <gml:MultiPolygon srsName="0"> <gml:polygonMember> <gml:Polygon srsName="0"> <gml:outerBoundaryIs> <gml:LinearRing srsName="0"> <gml:coordinates>35.8836141808394,36.8725679313339 35.942909637095,37.0879040619465</gml:coordinates> </gml:LinearRing> </gml:outerBoundaryIs> </gml:Polygon> </gml:polygonMember> </gml:MultiPolygon> </gml:geometryMember> </gml:MultiGeometry> </gml:ProxyResponse> ...then i convert it to XML a la: private var gml:XML = new XML(s:String); // 's' is the string above. i can trace it out successfully via: gml.toString() and i see the string again. but when i try and access its child elements, it continues outputting everything...for example: gml.children()[7] should be outputting the "gml:coordinates" element. does someone see where i may be going wrong? any tips are appreciated. thanks. -- matt.

