Results 1 to 2 of 2

Thread: Facing difficulty in parsing xml response in qt

  1. #1
    Join Date
    Oct 2010
    Posts
    16
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Maemo/MeeGo

    Default Facing difficulty in parsing xml response in qt

    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,"secr et":"XXXX","sig":"XXXX"}

  2. #2
    Join Date
    Oct 2010
    Posts
    16
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Maemo/MeeGo

    Default Re: Facing difficulty in parsing xml response in qt

    found answer. oops!. the above response is not in xml format, its a json response format i have used qtscriptengine class to parse it.

Similar Threads

  1. Replies: 4
    Last Post: 31st August 2010, 05:42
  2. Replies: 1
    Last Post: 25th June 2010, 18:14
  3. facing a trouble on QFileDialog
    By Askar in forum Qt Programming
    Replies: 2
    Last Post: 8th March 2010, 11:22
  4. difficulty in conversion
    By mohanakrishnan in forum Qt Programming
    Replies: 3
    Last Post: 7th December 2009, 10:31
  5. I am facing a problem please help me !
    By sujan.dasmahapatra in forum General Programming
    Replies: 3
    Last Post: 16th September 2009, 14:12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.