While we see XQuery mentioned a lot, what support is there for doing:
QDomDocument doc(some_xml);
QDomNodeList dnl=doc.query("/some/XPath/Query[@attribute1='ff' and @attribute2=7]");
QList<QDomNode> nodeList=DNLToQList(dnl); // convert to a QList so we can iterate over it with foreach
foreach (QDomNode n, nodeList)
{
//do something
}