Results 1 to 2 of 2

Thread: XML human readable string.

  1. #1
    Join Date
    May 2011
    Posts
    19
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default XML human readable string.

    Hello,

    i have an xml in my string, and i want it to be a human readable. QXmlSimpleWritter has an autoformat function. But how can I format a xml that i'm not creating with QXmlSimpleWritter?

    best regards
    mp

  2. #2
    Join Date
    Jan 2006
    Location
    Napoli, Italy
    Posts
    621
    Thanks
    5
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: XML human readable string.

    You can use QDomDocument.

    With QDomDocument::setContent you can read the XML string and with QDomDocument::toString() to obtaint a proper string
    A camel can go 14 days without drink,
    I can't!!!

Similar Threads

  1. Replies: 5
    Last Post: 19th November 2010, 03:25
  2. Readable Xml with QXmlStreamWriter
    By jano_alex_es in forum Newbie
    Replies: 8
    Last Post: 26th August 2009, 12:53
  3. Human-Human playable game over Internet
    By A.H.M. Mahfuzur Rahman in forum KDE Forum
    Replies: 0
    Last Post: 2nd August 2009, 04:26
  4. Poses of a human skeleton
    By Cruz in forum Qt Programming
    Replies: 4
    Last Post: 15th January 2009, 11:37
  5. How to make QTimeEdit Box readable only
    By Krishnacins in forum Qt Programming
    Replies: 3
    Last Post: 6th March 2006, 09:10

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.