[Qt-interest] Data Storage for QT Application
Oliver.Knoll at comit.ch
Oliver.Knoll at comit.ch
Wed Feb 10 16:14:12 CET 2010
Chitrang Srivastava wrote on Wednesday, February 10, 2010 1:28 PM:
> How could I find a Element based on it Value of one of it attribute?
1. Know the structure of your QDomDocument
2. Iterate over all children (of a given subtree) until you find the child with the given attribute value
If you would use Qt 4.x (4.4 and above probably) then http://doc.trolltech.com/4.6/qtxmlpatterns.html could also be of use, especially QXmlQuery I assume. But iterating over 20+ nodes of your simple XML document should be a nice 5 minute exercise for you ;)
Cheers, Oliver
--
Oliver Knoll
Dipl. Informatik-Ing. ETH
COMIT AG - ++41 79 520 95 22
More information about the Qt-interest-old
mailing list