Processing XML data using the QDomDocument class