QDomNode parent = doc.firstChildElement("parent"); if(!parent.isNull()) { QDomNodeList children = parent.childNodes(); // do something with the children... }
QDomNode nullNode; if(nullNode.isNull()) { qDebug() << "This is a null node."; }Package library: Qt - QDom.