Yes after commenting out the package statement it seems to be doing something but there are still some errors.
I have changed the hbm.xml file as per your suggestion and I corrected the ResultID field in the XML document. When I execute the code I am getting the following error message.