# Parsing Soap

**URL:** <https://forum.kirupa.com/t/parsing-soap/294354>\
**Category:** flash\
**Created:** [August 12, 2009, 9:50pm UTC](https://forum.kirupa.com/t/parsing-soap/294354 "2009-08-12T21:50:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dmennenoh](https://avatars.discourse-cdn.com/v4/letter/d/9dc877/32.png) [@dmennenoh](https://forum.kirupa.com/u/dmennenoh)\
**Post date:** [August 12, 2009, 9:50pm UTC](https://forum.kirupa.com/t/parsing-soap/294354/1 "2009-08-12T21:50:31Z")

</div>

I am getting the following SOAP response from a server call - have it inlined for testing:

var t:XML =  
\<s:Envelope xmlns:s=“[http://schemas.xmlsoap.org/soap/envelope/](http://schemas.xmlsoap.org/soap/envelope/)”\>  
\<s:Body\>  
\<GetTotalPointsResponse xmlns=“[http://tempuri.org/](http://tempuri.org/)”\>  
\<GetTotalPointsResult\>  
\<return\>858000\</return\>  
\</GetTotalPointsResult\>  
\</GetTotalPointsResponse\>  
\</s:Body\>  
\</s:Envelope\>;

I can get the Body using:

var n:Namespace = t.namespace();  
var body:XML = t.n::Body[0];  
trace(body);

But I need to get the 85800 inside the \<return\> tags. Anyone? I’m new to using namespaces in XML, so am banging my head on this one.

thanks
