[jdom-interest] Parsing withou validating - File not Found
Brett McLaughlin
brett at newInstance.com
Thu Jul 19 17:18:22 PDT 2001
> > import org.xml.sax.EntityResolver;
> > import org.xml.sax.InputSource;
> >
> > public class NoDTDEntityResolver {
> > public InputSource resolveEntity(String publicID, String systemID) {
> > if (systemID.equals("myDTDSystemID")) {
> > return null;
> > }
> > }
> > }
> >
>
> Is this in the FAQs? Does this work for Crimson?
Nope, not in the FAQ, but it should work with any SAX-compliant parser. So
yeah, it should work with Crimson.
> I have this case where people are working on the DTD/Schema for the XML
document and
> I want to post the final location in the XML document without having to
worry about
> it but kept getting the same error/report.
Try it out and let is know, but it should help.
---
Brett McLaughlin
Enhydra Strategist: http://www.enhydra.org
Lutris Technologies: http://www.lutris.com
O'Reilly Author: http://www.newInstance.com
More information about the jdom-interest
mailing list