SOLR-964 -- XPathEntityProcessor now ignores DTD validations

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@736616 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Shalin Shekhar Mangar 2009-01-22 12:12:24 +00:00
parent c704058fbb
commit fa5b4e8f04
2 changed files with 7 additions and 0 deletions

View File

@ -101,6 +101,9 @@ Other
Removed support for 'default' variables, they are automatically available as request parameters.
(Noble Paul via shalin)
2. SOLR-964: XPathEntityProcessor now ignores DTD validations
(Fergus McMenemie, Noble Paul via shalin)
================== Release 1.3.0 20080915 ==================
Status

View File

@ -329,6 +329,10 @@ public class XPathRecordReader {
}
static XMLInputFactory factory = XMLInputFactory.newInstance();
static{
factory.setProperty(XMLInputFactory.IS_VALIDATING , Boolean.FALSE);
factory.setProperty(XMLInputFactory.SUPPORT_DTD , Boolean.FALSE);
}
public static interface Handler {
public void handle(Map<String, Object> record, String xpath);