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.

View | Details | Raw Unified | Return to bug 136595
Collapse All | Expand All

(-)a/openide.loaders/src/org/openide/loaders/XMLDataObject.java (-8 / +1 lines)
Lines 48-54 Link Here
48
import java.net.URL;
48
import java.net.URL;
49
import java.util.*;
49
import java.util.*;
50
import java.util.logging.*;
50
import java.util.logging.*;
51
import javax.xml.parsers.DocumentBuilder;
52
import javax.xml.parsers.FactoryConfigurationError;
51
import javax.xml.parsers.FactoryConfigurationError;
53
import org.openide.cookies.*;
52
import org.openide.cookies.*;
54
import org.openide.filesystems.*;
53
import org.openide.filesystems.*;
Lines 604-616 Link Here
604
    */
603
    */
605
    @Deprecated
604
    @Deprecated
606
    public static Document parse (URL url, ErrorHandler eh, boolean validate) throws IOException, SAXException {
605
    public static Document parse (URL url, ErrorHandler eh, boolean validate) throws IOException, SAXException {
607
        
606
        return XMLUtil.parse (new InputSource(url.toExternalForm()),validate, false, eh, getChainingEntityResolver());
608
        DocumentBuilder builder = XMLDataObjectImpl.makeBuilder(validate);
609
        builder.setErrorHandler(eh);
610
        builder.setEntityResolver(getChainingEntityResolver());
611
        
612
        return builder.parse (new InputSource(url.toExternalForm()));
613
614
    }
607
    }
615
608
616
    /** Creates SAX parse that can be used to parse XML files.
609
    /** Creates SAX parse that can be used to parse XML files.

Return to bug 136595