if ( prevResults == null || lastModTime > prevResults.getFileModTime() )
{
try
{
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
LocalFileEntityResolver entityResolver = LocalFileEntityResolver.getInstance();
// If a schema was specified, we'll validate against that; otherwise, we'll just use the DTD.
if (_schemaFileName != null) {
InputSource schemaInput = entityResolver.resolveLocalEntity(_schemaFileName);
assert schemaInput != null : "could not get schema resource for " + _schemaFileName;
factory.setNamespaceAware(true);
factory.setAttribute( "http://java.sun.com/xml/jaxp/properties/schemaLanguage",
"http://www.w3.org/2001/XMLSchema");
factory.setAttribute( "http://java.sun.com/xml/jaxp/properties/schemaSource", schemaInput);