Use same exception for failed XML parsing as JSON.
Allowed later versions of phpunit to stop travis breaking
Merge pull request #38 from richardmiller/use-same-exception

Use same exception for failed XML parsing as JSON.