In article <dc**************************@posting.google.com >,
Doug Estep <do***********@webtechinfo.com> wrote:
% Thanks for your help Richard. If the purpose of a DTD is to define
% the rules for an XML file and the XML file can define child elements
% for a parent which may have the same name as another parents child
% elements.... and the DTD cannot handle that situation.... then I do
% think there is a flaw in the DTD design.
You keep leaving out `but different content models' when you say `have
the same name'. If you want to go around slagging DTDs, at least make
your description of the problem complete. DTDs were not designed to
accomodate this sort of document, but that doesn't make them worthless for
any serious application. Anyway, you can write a DTD which will validate
your document, but it will also validate documents which don't conform
to your design. I don't think it's possible to create a well-formed XML
document for which you can't create a matching DTD.
You should probably look at RELAX NG or W3C Schemas and see if they are
better for your purposes.
--
Patrick TJ McPhee
East York Canada
pt**@interlog.com