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. 

Reply via email to