How to search a string in xml file with Qt Dom classes
I want to use xml file like sql database file.how to i can search a string with qtxml dom classes in xml file.
How to search a string in xml file with Qt Dom classes
I want to use xml file like sql database file.how to i can search a string with qtxml dom classes in xml file.
You may start with reading docs:
pay special attention to "Detailed Description" sections. There are example pieces of code..
J-P Nurmi
If you need DOM functionality, then you need to recurse over children of each element looking for a node you need, for example:
Qt Code:
!elem.isNull(); elem = elem.nextSiblingElement()){ if(elem.text()==textToFind) return elem; if(!e.isNull()) return e; } }To copy to clipboard, switch view to plain text mode
Bookmarks