Results 1 to 4 of 4

Thread: Updating xml attribute

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    May 2007
    Posts
    301
    Thanks
    46
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Updating xml attribute

    Thanks,

    I am using QDomDocument to create the xml, example :

    Qt Code:
    1. QDomDocument doc( "configurationXML" );
    2. QDomElement root = doc.createElement( "configuration" );
    3. doc.appendChild( root );
    4. QDomElement dbc = doc.createElement( "dbc" );
    5. root.appendChild( dbc );
    6. QDomElement read = doc.createElement( "read" );
    7. root.appendChild( read );
    8.  
    9. // etc
    To copy to clipboard, switch view to plain text mode 

    and then using QTextStream to write the file.

    I can't seem to find methods for actually amending the xml without having to re-create the dom...I know there must be some! Maybe setNodeValue?

    Regards,
    Steve
    Last edited by steg90; 17th July 2007 at 09:23.

Similar Threads

  1. Replies: 5
    Last Post: 16th May 2007, 11:03
  2. Replies: 15
    Last Post: 8th May 2007, 11:46
  3. Replies: 1
    Last Post: 22nd January 2007, 09:41
  4. Replies: 2
    Last Post: 4th May 2006, 19:17
  5. Problem with QScrollArea updating from 4.0.1 to 4.1.0
    By SkripT in forum Qt Programming
    Replies: 8
    Last Post: 28th January 2006, 22:35

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.