|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: 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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








