This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
import java.net.URL;
import java.util.*;
import java.util.logging.*;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.FactoryConfigurationError;
import org.openide.cookies.*;
import org.openide.filesystems.*;
*/
@Deprecated
public static Document parse (URL url, ErrorHandler eh, boolean validate) throws IOException, SAXException {
return XMLUtil.parse (new InputSource(url.toExternalForm()),validate, false, eh, getChainingEntityResolver());
DocumentBuilder builder = XMLDataObjectImpl.makeBuilder(validate);
builder.setErrorHandler(eh);
builder.setEntityResolver(getChainingEntityResolver());
return builder.parse (new InputSource(url.toExternalForm()));
}
/** Creates SAX parse that can be used to parse XML files.