Fixed loading xml source and improved error messages
Merge pull request #9 from hason/xml

Fixed loading xml source and improved error messages