title: SOAP Response paring
body: <p>I have the following soap response saved as an inline string. I just formatted it for easier reading:</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='UTF-8'?&gt;
  &lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"&gt;
      &lt;soapenv:Body&gt;
          &lt;ns:getUserResponse xmlns:ns="http://www.cisco.com/AXL/API/10.0"&gt;
              &lt;return&gt;
                  &lt;user uuid="{SOME-IDENTIFIER-HERE}"&gt;
                      &lt;firstName&gt;MyFirstName&lt;/firstName&gt;
                      &lt;middleName /&gt;
                      &lt;lastName&gt;MyLastName&lt;/lastName&gt;
                      &lt;userid&gt;myId&lt;/userid&gt;
                      &lt;password /&gt;
                      &lt;pin /&gt;
                      &lt;mailid&gt;myEmail@myEmail.com&lt;/mailid&gt;
                      &lt;department /&gt;
                      &lt;manager /&gt;
                      &lt;userLocale /&gt;
                  &lt;/user&gt;
              &lt;/return&gt;
          &lt;/ns:getUserResponse&gt;
      &lt;/soapenv:Body&gt;
  &lt;/soapenv:Envelope&gt;
  </code></pre>
  
  <p>How may I be able to parse through this and get specific element values inside this response?
  I was thinking of converting the string to an XML first and do parsing after.</p>
  
  <p>Can anyone shed some light on how I could achieve this?</p>
  
  <p>Thanks</p>