Results 1 to 2 of 2

Thread: read and change xml file

  1. #1
    Join Date
    Apr 2011
    Posts
    195
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    49
    Thanked 4 Times in 4 Posts

    Default read and change xml file

    hi all!
    I want to read out xml file.
    I want read from tag to tag, read out the attributes and then change the attributes.

    Now I dont't know if I schould use QDom or another Qt class.
    Do you have suggestions??

    thank u

  2. #2
    Join Date
    Mar 2010
    Location
    Heredia, Costa Rica
    Posts
    257
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    24
    Thanked 17 Times in 14 Posts

    Default Re: read and change xml file

    You can read the QT documentation.
    But basically each xml node has a previous,child and next node. Is like a tree... you can browse through each node with a while loop checking that previous,child or next are not null. This is the most basic way... However, the XML module of QT has lost of function to accelerate the process of reading, finding nodes and changing values.

Similar Threads

  1. Read contents from the file using QHTTP Read()?
    By Gokulnathvc in forum Newbie
    Replies: 2
    Last Post: 21st June 2011, 09:03
  2. Replies: 0
    Last Post: 6th March 2009, 09:19
  3. is qt phonon can read realmedia file and divx file
    By fayssalqt in forum Qt Programming
    Replies: 1
    Last Post: 27th January 2009, 16:42
  4. Replies: 1
    Last Post: 20th June 2008, 19:43
  5. Read An Xml File
    By Alienxs in forum Qt Programming
    Replies: 3
    Last Post: 5th January 2007, 01:28

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.