Refactored, moving XMLLoader to io package