Ignore:
Timestamp:
2023-03-31T11:11:28+13:00 (13 months ago)
Author:
kjdon
Message:

we need to ignore the dtd when reading in the doc.xml. old collections mayuse http://, which they can't access properly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/util/GSDocumentModel.java

    r37177 r37596  
    20482048            {
    20492049                DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
     2050                                // ignore the dtd
     2051                                dbf.setFeature("http://xml.org/sax/features/validation", false);
     2052                                dbf.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd", false);
    20502053                DocumentBuilder db = dbf.newDocumentBuilder();
    20512054                docXML = db.parse(docFile);
Note: See TracChangeset for help on using the changeset viewer.