[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: DTD vs Schema....


dtd vs schema
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@C...]
> Sent: Saturday, April 20, 2002 11:58 AM
> To: Tippabhotla, Ravishanker
> Cc: xml-dev@l...
> Subject: Re:  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>
> 

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.