make xml-comparison tests pass for jdk8