Revision 76
Added by Matt Jones almost 25 years ago
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 | 82 |
systemid = dtd.getSystemId(); |
80 |
System.out.println("DOCTYPE: " + docname);
|
|
83 |
System.out.println("DOCNAME: " + docname);
|
|
81 | 84 |
System.out.println("DOCTYPE: " + doctype); |
82 |
System.out.println("DOCTYPE: " + systemid);
|
|
85 |
System.out.println(" SYSID: " + systemid);
|
|
83 | 86 |
} |
84 | 87 |
|
85 | 88 |
/** SAX Handler that receives notification of end of DTD |
Also available in: Unified diff
fixed DBSimpleQuery after doctype additions done by Jivka