iphone - ios - How to decode XML document? -


this question has answer here:

i'm new iphone development,i'm trying access token google,when logged in,i'm getting html content,in html content want token contained in binarysecuritytoken node.

how in below html content?

<head>     <title>working...</title> </head> <body>     <form method="post"             name="hiddenform"             action="http://localhost:26298/loginsuccess.aspx">         <input type="hidden" name="wa" value="wsignin1.0" />         <input type="hidden" name="wresult"             value="<t:requestsecuritytokenresponse xmlns:t="http://schemas.xmlsoap.org/ws/2005/02/trust">         <t:lifetime><wsu:created xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2013-04-29t11:50:29.895z</wsu:created><wsu:expires xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2013-04-29t12:00:29.895z</wsu:expires></t:lifetime><wsp:appliesto xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"><endpointreference xmlns="http://www.w3.org/2005/08/addressing"><address>urn:orin.converse</address></endpointreference></wsp:appliesto>        <t:requestedsecuritytoken>                <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">                  ahr0ccuzysuyziuyznnjagvtyxmubwljcm9zb2z0lmnvbsuyzndzjtjmmjawocuyzja2jtjmawrlbnrpdhklmmzjbgfpbxmlmmzyb2xlpvvzzximahr0ccuzysuyziuyznnjagvtyxmueg1sc29hcc5vcmclmmz3cyuyzjiwmdulmmywnsuyzmlkzw50axr5jtjmy2xhaw1zjtjmzw1hawxhzgryzxnzpwtyywoubmfnjtqwz21hawwuy29tjmh0dhalm2elmmylmmzzy2hlbwfzlnhtbhnvyxaub3jnjtjmd3mlmmyymda1jtjmmdulmmzpzgvudgl0esuyzmnsywltcyuyzm5hbwu9tmfnyxjhamfuk0thcnroawtlewfujmh0dhalm2elmmylmmzzy2hlbwfzlnhtbhnvyxaub3jnjtjmd3mlmmyymda1jtjmmdulmmzpzgvudgl0esuyzmnsywltcyuyzm5hbwvpzgvudglmawvypwh0dhbzjtnhjtjmjtjmd3d3lmdvb2dszs5jb20lmmzhy2nvdw50cyuyzm84jtjmawqlm2zpzcuzzefjde9hd2szaetsblhkrzjsvmozx2f4bfj1tlrvrzbmt09qddjbayzodhrwjtnhjtjmjtjmc2nozw1hcy5tawnyb3nvznquy29tjtjmywnjzxnzy29udhjvbhnlcnzpy2ulmmyymdewjtjmmdclmmzjbgfpbxmlmmzpzgvudgl0exbyb3zpzgvypudvb2dszszbdwrpzw5jzt11cm4lm2fvcmlulmnvbnzlcnnljkv4cglyzxnpbj0xmzy3mjm2odi5jklzc3vlcj1odhrwcyuzysuyziuyzmnvbnzlcnnllmfjy2vzc2nvbnryb2wud2luzg93cy5uzxqlmmymse1bq1niqti1nj04tjhqvmrfa1u0q3nxodhnnvf1qvjkv0q1c0t0dwxks3rhy2noawd0sjk0jtnk            </wsse:binarysecuritytoken>        </t:requestedsecuritytoken><t:tokentype>http://schemas.xmlsoap.org/ws/2009/11/swt-token-profile-1.0</t:tokentype><t:requesttype>http://schemas.xmlsoap.org/ws/2005/02/trust/issue</t:requesttype><t:keytype>http://schemas.xmlsoap.org/ws/2005/05/identity/noproofkey</t:keytype></t:requestsecuritytokenresponse>" />         <noscript>             <p>script disabled. click submit continue.</p>             <input type="submit" value="submit" />         </noscript>     </form>     <script language="javascript">window.settimeout('document.forms[0].submit()', 0);</script> </body> 

any ideas? in advance.

already done ... forward. seems use xml/html namespaces, hum . cheers.

https://stackoverflow.com/questions/6116827/looking-for-a-good-tutorial-on-nsxmlparser


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -