I think this example from the Qt distribution is what you need. The XML you showed above is not a properly complete XML document; it is missing the XML header information, so the DOM parser will probably reject it. Be sure you have a correct XML file.