You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Scott Greenough <sc...@haht.com> on 2000/07/25 17:56:14 UTC

DocType Question

I have a document that does not have a DOCTYPE definition line in it but
want to associate a DTD with this document before I parse the document. How
can I do this?

Thanks,
Scott Greenough


Re: DocType Question

Posted by Andy Clark <an...@apache.org>.
Scott Greenough wrote:
> I have a document that does not have a DOCTYPE definition line in it but
> want to associate a DTD with this document before I parse the document. How
> can I do this?

You can't without custom code. And it might be a little complicated
so I won't go into the details here. But the basic idea is that you
intercept the startElement and the "fake" the DTD callbacks in order
to populate the grammar.

-- 
Andy Clark * IBM, JTC - Silicon Valley * andyc@apache.org