Project

General

Profile

« Previous | Next » 

Revision 90

Added by Matt Jones over 24 years ago

updated handler to deal better with Public IDs

View differences:

DBSAXHandler.java
76 76
    // here is a bug: dtd.getPublicId() and dtd.getSustemId() return null.
77 77
    docname = dtd.getName();
78 78
    doctype = dtd.getPublicId();
79
    if (doctype == null) {
80
      doctype = docname;
81
    }
79
    //if (doctype == null) {
80
      //doctype = docname;
81
    //}
82 82
    systemid = dtd.getSystemId();
83 83
    System.out.println("DOCNAME: " + docname);
84 84
    System.out.println("DOCTYPE: " + doctype);

Also available in: Unified diff