Results 1 to 2 of 2

Thread: XML advice

  1. #1
    Join Date
    May 2008
    Location
    Rijeka, Croatia
    Posts
    85
    Thanks
    10
    Thanked 6 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default XML advice

    Hi all!

    I'm trying to implement xmr write/read system for my data classes.
    On few occasions I already used QXmlStreamWriter and QXmlStreamReader but this is more serious and long term project thus I would like consider alternatives.
    Particularly, I have in mind QDom module. Data that we will work with is both "wide" and "deep".

    What would you suggest?

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: XML advice

    In the end, I think it is just a decision about what you like more.

    In my project I use QDom* and represent all XML-content in classes. Thus each class also have a readFromXML and writeToXML function with a QDomNode or QDomElement parameter. With that approach I am very happy.

    If you don't need that your files are user readable and editable. I would also consider to use QDataStream direct, which is much faster than using XML.

Similar Threads

  1. Advice and Widgets To Use
    By different in forum Newbie
    Replies: 3
    Last Post: 25th March 2010, 00:52
  2. QtConcurrent, i need advice
    By SABROG in forum Qt Programming
    Replies: 10
    Last Post: 29th December 2009, 19:53
  3. Basic Advice
    By Ferric in forum Newbie
    Replies: 1
    Last Post: 18th December 2009, 08:52
  4. Need Advice: Best IDE for Mac OSX
    By JimDaniel in forum Qt Programming
    Replies: 6
    Last Post: 18th October 2008, 23:14
  5. Advice for a new Project
    By hardgeus in forum Qt Programming
    Replies: 3
    Last Post: 18th April 2008, 08:01

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