Results 1 to 3 of 3

Thread: Parsing xml file

  1. #1
    Join Date
    Jun 2009
    Posts
    29
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Parsing xml file

    I need to read and parse a xml file using Qt.

    How this can be done?

    Thanks in advance
    Mahfuz

  2. #2
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Thanks
    8
    Thanked 133 Times in 128 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Parsing xml file

    three ways..

    1. QDom
    2. QXmlStreamReader
    3. SAX

    read about them in Qt assistant ...

  3. #3
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Parsing xml file

    QDomElementand QDomDocumentclasses are also sufficient for XML handling. You can use QDomDocument::setContent to create a document, and access the child nodes with QDomElement

Similar Threads

  1. Parsing Text File --> Guide Needed
    By Ali_Talib in forum Qt Programming
    Replies: 11
    Last Post: 6th January 2009, 17:19
  2. Text file parsing too slow
    By Potch in forum Newbie
    Replies: 5
    Last Post: 11th July 2008, 21:16
  3. Parsing XML file
    By Djony in forum Qt Programming
    Replies: 7
    Last Post: 8th January 2007, 15:03
  4. Config file parsing
    By Vash5556 in forum Qt Programming
    Replies: 2
    Last Post: 10th September 2006, 23:11

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.