You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Andy Clark <an...@apache.org> on 2001/12/05 12:10:42 UTC

Re: dtd validation and jtree.

vivek bodhraj wrote:
> I have a requirement to display a DTD on a scrollpane
> using Jtree. I have checked up the samples that come
> with xercesparser(131), my understanding is that they

Yes, it certainly is feasible but there's no code currently
that does this. Perhaps it will be a future sample. But you
*can* use the DTD scanner and register the appropriate DTD
handlers to receive information about the DTD declarations.

Check out the XNI documentation for information to get you
started. Also, the org.apache.xerces.impl.XMLDTDScannerImpl
class implements the XNI DTD scanner interface. So you can
use that to parse a DTD, either as part of an XML document
and/or a separate DTD file.

-- 
Andy Clark * andyc@apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org