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:
parent
e19148c375
commit
748b5699b9
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user