Results 1 to 4 of 4

Thread: Read An Xml File

Hybrid View

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

    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.

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

    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.

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

    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
  •  
Qt is a trademark of The Qt Company.