iphone - ios - How to get value from XML node? -
i want value xml node(wsse:binarysecuritytoken) given in below code.
<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>
can give sample code? in advance.
you can use xml parser conver xml nsdictionary
https://github.com/nicklockwood/xmldictionary
+ (nsdictionary *)dictionarywithxmldata:(nsdata *)data;
Comments
Post a Comment