When calling Parser() in the same process, Singletons like the QuerySingleton are not properly cleared. This may lead to problems when first loading an XML file to query, and afterwards running another query, but without an XML file. In this case, the Parser may actually parse the previously loaded file.