W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2000

Re: Antwort: Re: Antwort: DTD to DOM to XML

From: <keshlam@us.ibm.com>
Date: Tue, 13 Jun 2000 10:08:08 -0400
To: carsten.pitz@bgs-ag.de
cc: www-dom@w3.org
Message-ID: <852568FD.004DA3DE.00@D51MTA03.pok.ibm.com>
I didn't say that a DTD by itself was an XML Instance. It isn't, and
attempting to parse it as one will yield errors. However, an XML instance
can certainly include an internal subset, or can reference an external DTD,
and a validating XML parser will handle these.

If you "just want to parse the DTD", you have to express that request in a
format that your parser can handle -- which may mean providing a dummy
instance document, or may mean calling the parser differently, depending on
your parser's APIs. The DOM currently doesn't address how parsers are
invoked; DOM Level 3 is looking at that issue as part of the "Load/Save"
activity. Meanwhile, look at the documentation for the parser you want to
use.

The DOM currently has no standardized mechanism for representing them. DOM
Level 3 is looking at that issue under the "Content Model" activity.
Meanwhile, some parsers -- including XML4J -- have custom data structures
for that purpose.

______________________________________
Joe Kesselman  / IBM Research
Received on Tuesday, 13 June 2000 10:08:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:47 GMT