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 vivek bodhraj <vi...@yahoo.com> on 2001/11/26 21:05:19 UTC

dtd validation and jtree.

Hi,
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
only display the xml instance not the dtd alone. Is
there a way I can display it wrapping it with JTree?
Any help would be appreciated.

Regards,
Vivek.

__________________________________________________
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1

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


Re: dtd validation and jtree.

Posted by Andy Clark <an...@apache.org>.
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