re PR xml/30983 (DocumentBuilder.parse throws exception)

2007-03-08  Gary Benson  <gbenson@redhat.com>

	PR classpath/30983:
	* gnu/xml/dom/ls/DomLSParser.java (getInputSource):
	Do not use the entity resolver to resolve the top-level document.

From-SVN: r122700
This commit is contained in:
Gary Benson
2007-03-08 16:33:40 +00:00
committed by Gary Benson
parent 56bedf420f
commit 8c67ec7a88
3 changed files with 7 additions and 16 deletions
@@ -363,22 +363,6 @@ public class DomLSParser
source = new InputSource(in);
source.setSystemId(systemId);
}
if (source == null && entityResolver != null)
{
String publicId = input.getPublicId();
try
{
source = entityResolver.resolveEntity(publicId, systemId);
}
catch (SAXException e)
{
throw new DomLSException(LSException.PARSE_ERR, e);
}
catch (IOException e)
{
throw new DomLSException(LSException.PARSE_ERR, e);
}
}
if (source == null)
{
URL url = null;