Implemented generic version of LoadParseQueryXML