Issue 61 - Turn on text coalescing and XML entity reference replacement

git-svn-id: http://google-refine.googlecode.com/svn/trunk@1939 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
Tom Morris 2010-11-27 22:07:15 +00:00
parent e19148c375
commit 748b5699b9

View File

@ -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();