Commit 8c67ec7a by Gary Benson Committed by Gary Benson

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
parent 56bedf42
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.
2007-03-07 Gary Benson <gbenson@redhat.com> 2007-03-07 Gary Benson <gbenson@redhat.com>
PR classpath/30906:
* resource/META-INF/services/org.w3c.dom.DOMImplementationSourceList: * resource/META-INF/services/org.w3c.dom.DOMImplementationSourceList:
New file. New file.
......
...@@ -363,22 +363,6 @@ public class DomLSParser ...@@ -363,22 +363,6 @@ public class DomLSParser
source = new InputSource(in); source = new InputSource(in);
source.setSystemId(systemId); 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) if (source == null)
{ {
URL url = null; URL url = null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment