You get the first child, which would be "phones". Then you try to get its siblings but it doesn't have any. You need to get the children of phones. So you can do:
Qt Code:
QDomDocument d; d.setContent(&file); if(!n.isNull() || !n.hasChildNodes()) return; n = n.firstChild(); ClearPhoneNumbers(); // Clear phone table. while(!n.isNull()) { ...To copy to clipboard, switch view to plain text mode
Bookmarks