Results 1 to 2 of 2

Thread: QXmlSerializer, getting attribute and value from serializer

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Aug 2009
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    4

    Default Re: QXmlSerializer, getting attribute and value from serializer

    it is easy just put "@" befor name of attribute
    like this

    Qt Code:
    1. QXmlQuery query;
    2. query.setQuery("doc('index.html')/html/body/@onload"); // getting onload event of html document
    To copy to clipboard, switch view to plain text mode 

    for value you need
    Qt Code:
    1. QString QDomElement::text () const
    To copy to clipboard, switch view to plain text mode 
    Last edited by ihope; 12th August 2009 at 01:15.

Tags for this Thread

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.