--- /home/cpdev/src/classpath/gnu/xml/dom/DomDocumentBuilder.java	2005-07-02 21:03:11.000000000 +0000
+++ gnu/xml/dom/DomDocumentBuilder.java	2005-06-30 05:34:17.000000000 +0000
@@ -39,8 +39,6 @@
 
 import java.io.InputStream;
 import java.io.IOException;
-import java.io.Reader;
-import java.net.URL;
 import javax.xml.parsers.DocumentBuilder;
 import org.w3c.dom.Document;
 import org.w3c.dom.DOMConfiguration;
@@ -142,7 +140,6 @@
     throws SAXException, IOException
   {
     LSInput input = ls.createLSInput();
-    String systemId = is.getSystemId();
     InputStream in = is.getByteStream();
     if (in != null)
       {
@@ -150,19 +147,10 @@
       }
     else
       {
-        Reader reader = is.getCharacterStream();
-        if (reader != null)
-          {
-            input.setCharacterStream(reader);
-          }
-        else
-          {
-            URL url = new URL(systemId);
-            input.setByteStream(url.openStream());
-          }
+        input.setCharacterStream(is.getCharacterStream());
       }
     input.setPublicId(is.getPublicId());
-    input.setSystemId(systemId);
+    input.setSystemId(is.getSystemId());
     input.setEncoding(is.getEncoding());
     return parser.parse(input);
   }
