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

Re: Antwort: DTD to DOM to XML

From: <keshlam@us.ibm.com>
Date: Tue, 13 Jun 2000 08:28:29 -0400
To: www-dom@w3.org
Message-ID: <852568FD.004484FB.00@D51MTA03.pok.ibm.com>
>1. the format (syntax) used for XML DTDs is not XML itself
>2. the DOM is an object view for XML instances

Slightly oversimplified. DTD syntax _is_ considered part of the XML
language syntax, though a distinct subset. However, DOM Level 2 and before
do not attempt to model DTDs.

DOM Level 3 expects to add a Content Model section to the spec which will
change this.


If you really want to use today's DOM to represent DTD information, your
best bet may be to transcode the DTD syntax into an equivalent expressed in
"instance document" syntax -- such as the W3C's XML Schema effort.
Unfortunately XML Schema is not a pure superset of DTD capabilities, so
this isn't entirely straightforward.



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

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