title: ios - How to decode XML document?
body: <p>I'm new to iPhone development,I'm trying to get access token from Google,When I logged in,I'm getting HTML content,in that HTML content I want to get token that is contained in BinarySecurityToken node.</p>
  
  <p>How to get that in the below HTML content?</p>
  
  <pre><code>&lt;head&gt;
      &lt;title&gt;Working...&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;form method="POST"
              name="hiddenform"
              action="http://localhost:26298/LoginSuccess.aspx"&gt;
          &lt;input type="hidden" name="wa" value="wsignin1.0" /&gt;
          &lt;input type="hidden" name="wresult"
              value="&lt;t:RequestSecurityTokenResponse xmlns:t="http://schemas.xmlsoap.org/ws/2005/02/trust"&gt;
          &lt;t:Lifetime&gt;&lt;wsu:Created xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"&gt;2013-04-29T11:50:29.895Z&lt;/wsu:Created&gt;&lt;wsu:Expires xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"&gt;2013-04-29T12:00:29.895Z&lt;/wsu:Expires&gt;&lt;/t:Lifetime&gt;&lt;wsp:AppliesTo xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"&gt;&lt;EndpointReference xmlns="http://www.w3.org/2005/08/addressing"&gt;&lt;Address&gt;urn:orin.converse&lt;/Address&gt;&lt;/EndpointReference&gt;&lt;/wsp:AppliesTo&gt;
         &lt;t:RequestedSecurityToken&gt;    
             &lt;wsse:BinarySecurityToken wsu:Id="uuid:5a48faca-2977-4c10-8cee-d213726f1971" ValueType="http://schemas.xmlsoap.org/ws/2009/11/swt-token-profile-1.0" EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"&gt;
                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as.xmlsoap.org/ws/2009/11/swt-token-profile-1.0&lt;/t:TokenType&gt;&lt;t:RequestType&gt;http://schemas.xmlsoap.org/ws/2005/02/trust/Issue&lt;/t:RequestType&gt;&lt;t:KeyType&gt;http://schemas.xmlsoap.org/ws/2005/05/identity/NoProofKey&lt;/t:KeyType&gt;&lt;/t:RequestSecurityTokenResponse&gt;" /&gt;
          &lt;noscript&gt;
              &lt;p&gt;Script is disabled. Click Submit to continue.&lt;/p&gt;
              &lt;input type="submit" value="Submit" /&gt;
          &lt;/noscript&gt;
      &lt;/form&gt;
      &lt;script language="javascript"&gt;window.setTimeout('document.forms[0].submit()', 0);&lt;/script&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>Any ideas? Thanks in advance.</p>