Fixing XML parser to make Java8 happy

Workaround for https://jira.csiro.au/browse/AUS-2540. Proper solution should probably try to update dependency saxon