move XML2Object class to package

move XML2Object class to package