Results 1 to 4 of 4

Thread: Read An Xml File

  1. #1
    Join Date
    Aug 2006
    Posts
    12
    Thanks
    1
    Qt products
    Qt3 Qt/Embedded
    Platforms
    Unix/X11

    Exclamation Read An Xml File

    Hi, hello again to all of you, i have a pretty good question, is there anyway or better say any easy way to read an xml file using c++ code?? because im trying to develop an application wich will be configure through an xml file so i would like to know if anyone of you do know some libraries or classes that allow me to do this on an easy way not through fopen, fread, and fclose.

    So please if you allready did this let me know or if you knoe how let me know too.
    Well see ya and happy new year for all of you.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Read An Xml File

    Quote Originally Posted by Alienxs View Post
    is there anyway or better say any easy way to read an xml file using c++ code?
    Qt offers basic implementation of both SAX and DOM: http://doc.trolltech.com/3.3/xml.html

    If you need something more complex, there are several Open Source libraries for C++ that handle XML.

    Quote Originally Posted by Alienxs View Post
    Well see ya and happy new year for all of you.
    Happy New Year for you too.

  3. #3
    Join Date
    Mar 2006
    Location
    Mountain View, California
    Posts
    489
    Thanks
    3
    Thanked 74 Times in 54 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Read An Xml File

    Ditto. Qt makes using XML very easy. I refer the DOM API, but others prefer the SAX. Both are simple to use.

    Qt is not merely a GUI toolkit, as too many think it is. Instead it is a complete application framework. Besides widgets you get XML, files, pervasive unicode, i18n, l10n, collection classes, sockets and networking, font handling, 2D graphic scenes, model/view patterns, printing, settings, etc, etc, etc.

  4. #4
    Join Date
    Mar 2006
    Posts
    140
    Thanks
    8
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Read An Xml File

    I pray for a nice xml serialization framework that's as cool as .NET and Java's.
    Although I understand that it's sometimes better to explicitly write the structure yourself, it's nice to be able to just call .serialize(....) on a class and get a file out the other end with minimal effort.

Similar Threads

  1. read file from end to beginning..
    By soul_rebel in forum Qt Programming
    Replies: 11
    Last Post: 4th June 2012, 01:20
  2. Replies: 3
    Last Post: 23rd June 2006, 17:46
  3. How to read line from file
    By Krishnacins in forum Newbie
    Replies: 10
    Last Post: 1st June 2006, 23:14
  4. Replies: 13
    Last Post: 1st June 2006, 14:01
  5. How to read encoding type in XML file
    By danbr in forum Qt Programming
    Replies: 2
    Last Post: 30th April 2006, 08:17

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.