diff --git a/main/src/com/google/refine/importers/parsers/XmlParser.java b/main/src/com/google/refine/importers/parsers/XmlParser.java index 0d0eb2682..7ab12a8ae 100644 --- a/main/src/com/google/refine/importers/parsers/XmlParser.java +++ b/main/src/com/google/refine/importers/parsers/XmlParser.java @@ -52,7 +52,10 @@ public class XmlParser implements TreeParser{ public XmlParser(InputStream inputStream){ try { - parser = XMLInputFactory.newInstance().createXMLStreamReader(inputStream); + XMLInputFactory factory = XMLInputFactory.newInstance(); + factory.setProperty(XMLInputFactory.IS_COALESCING, true); + factory.setProperty(XMLInputFactory.IS_REPLACING_ENTITY_REFERENCES, true); + parser = factory.createXMLStreamReader(inputStream); } catch (XMLStreamException e) { // silent // e.printStackTrace();