You cannot parse a DTD by itself. However, you can easily create a small
file in memory (which references the DTD you are interested in) and parse
it. See the MemParse sample program that comes with the parser. Once you've
got the DTD parsed, it will fill a 'validator' object with all of the
information about the elements and attributes and such. You can then
enumerate these lists to find out what is defined. See the EnumVal sample
program for how to do this.

----------------------------------------
Dean Roddey
Software Weenie
IBM Center for Java Technology - Silicon Valley
[EMAIL PROTECTED]



"SOHN, DONG EON" <[EMAIL PROTECTED]> on 04/16/2000 11:05:55 AM

Please respond to [EMAIL PROTECTED]

To:   <[EMAIL PROTECTED]>
cc:
Subject:  [Q] How do I parsing my DTD?




Hi!

How do I parsing my DTD?

I have DTD, external file.
I want to put required tag using my DTD in creating xml file.
For example..
In XMetal,....
If I create new file, XMetal edit window start display with  required tag.
I want to this.
So, I think that I must parsing DTD.

How do I this like XMetal?

Let me know please...



Reply via email to