Hi David,

I also have to solve this problem. I need to convert DTDs into
XML schemas. I intend to construct a XML wrapper document which
contains a reference to the DTD I like to parse:

        <?xml version="1.0"?>
        <!DOCTYPE Doc SYSTEM "file:E:/OrderSummary.dtd">


When I parse this XML file using xerces and having a declaration handler
specified
(org.xml.sax.ext.DeclHandler) the DTD is parsed and the information found
reported through
the declaration handler (elements, attributes, entities). But this solution
seems only partly
sufficient because the content models are only delivered as strings (further
processing has to be 
done by the user) and semantically wrongly declarations (e.g. declare
attributes for elements that do
not exist) are not reported. 

Perhaps this helps you. If someone has a better solution please let me know.

Michael



-----Original Message-----
From: David DELGRANCHE [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 15, 2001 8:53 AM
To: Xerces J Users (Adresse de messagerie)
Subject: DTD Parsing


Hi,

I'm trying to find a parser to parse a DTD. Does anyone already do this? It 
seems that Xerces doens't support the DTD parsing. Perhaps in the next 
versions?
thanks for help
David.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to