PDA

View Full Version : Facing difficulty in parsing xml response in qt



newtolinux
14th December 2010, 10:09
Hi...
I am developing a facebook application in qt. In the middle i am getting a response from server like below:
{session_key:XXXXX", "uid:XXXXX", "expires:0", "secret:XXXX", "sig:XXXX}

I was tried to parse using xml parsers in qt, but i couldn't succeeded. Can some one help how to parse the above response in qt( i want to get the values of session_key,secret).

sorry the exact response was just like below:

{"session_key":"XXXX","uid":XXXX,"expires":0,"secret":"XXXX","sig":"XXXX"}

newtolinux
14th December 2010, 14:59
found answer. oops!. the above response is not in xml format, its a json response format i have used qtscriptengine class to parse it.