Results 1 to 7 of 7

Thread: How to cccess XML api correctly?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2009
    Posts
    5
    Qt products
    Qt3 Qt4 Qt/Embedded Qt Jambi PyQt3 PyQt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to cccess XML api correctly?

    That is exactly what readXml() does. It takes the QNetworkReply and creates a QXmlStreamReader out of it and then parses it. The xml looks like this -
    Qt Code:
    1. <response status="fail">
    2. <error>Incorrectly formatted xml</error>
    3. </response>
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Apr 2009
    Posts
    5
    Qt products
    Qt3 Qt4 Qt/Embedded Qt Jambi PyQt3 PyQt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to cccess XML api correctly?

    For the sake of completeness, if I post the same xml using curl commandline, it works great and gives me the correct response as well.

Similar Threads

  1. Howto benchmark QT correctly?
    By Linuxhippy in forum Qt Programming
    Replies: 1
    Last Post: 8th October 2008, 09:01
  2. renderText is not working correctly
    By validator in forum Qt Programming
    Replies: 3
    Last Post: 27th May 2008, 17:55
  3. correctly installed Qt4
    By Salazaar in forum Installation and Deployment
    Replies: 31
    Last Post: 7th May 2007, 08:24
  4. Replies: 1
    Last Post: 23rd August 2006, 19:02
  5. Replies: 6
    Last Post: 20th April 2006, 11:23

Tags for this Thread

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.