OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: [xml-dev] DTD vs Schema....

[ Lists Home | Date Index | Thread Index ]

I think that is more than the issue of simple data types.

For one thing, it is very inconvient to employ a hierarchy 
of DTDs using the conditional INCLUDE if you want to reuse
a hierachy of DTDs.  Particularly if you have some utlity DTDs
for reuse, nested INCLUDEs are likely to get multiple defined
elements.

Also DTD only specifies one document element in one DTD file, 
while XML Schema allows multiple document elements to be specified
in one XML schema file, as a result, I can use a single XML schema
to validate against different XML documents each of different
document roots.

Plus, XML schema itself is XML file, so you can easily use a 
XML parser to parse the schema file [for whatever reasons,
may be extract some processing instructions, transform the file
to HTML for documentation etc].

and some more...

Daryl Luk 

> -----Original Message-----
> From: Murali Mani [mailto:mani@CS.UCLA.EDU]
> Sent: Saturday, April 20, 2002 11:58 AM
> To: Tippabhotla, Ravishanker
> Cc: xml-dev@lists.xml.org
> Subject: Re: [xml-dev] DTD vs Schema....
> 
> 
> 
> I would use XML Schema to DTD if I have to define simple data types, and
> constraints such as key constraints, and referential integrity
> constraints.
> 
> cheers and regards - murali.
> 
> On Sat, 20 Apr 2002, Tippabhotla, Ravishanker wrote:
> 
> > Hi All,
> >   can some body tell me how to Determine when to use DTD versus 
> XML Schema
> > w.r.t legacy systems, scoping, run-time modification, constraints
> >
> > Thanx in Advance
> >
> >
> > RaviShanker Tippa,
> > Programmer Analyst,
> > Syntel India Ltd,
> > 21 MountRoad,Saidapet,
> > Chennai-15
> > Ph:2300368 ext-35
> >
> >
> > -----------------------------------------------------------------
> > The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
> > initiative of OASIS <http://www.oasis-open.org>
> >
> > The list archives are at http://lists.xml.org/archives/xml-dev/
> >
> > To subscribe or unsubscribe from this list use the subscription
> > manager: <http://lists.xml.org/ob/adm.pl>
> >
> 
> 
> -----------------------------------------------------------------
> The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
> initiative of OASIS <http://www.oasis-open.org>
> 
> The list archives are at http://lists.xml.org/archives/xml-dev/
> 
> To subscribe or unsubscribe from this list use the subscription
> manager: <http://lists.xml.org/ob/adm.pl>
> 




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS