...

DTD or Schema?

CRASH_OVERRIDE
12-31-2002, 12:50 AM
Im checking all of my xml documents against a regular DTD, but ive been finding out more about Schema.
For what I do, all that i need is something simple and not have to get too in depth with requirements, so I chose to use DTD. I then saw the rough draft for Schema 2.0 (aka DSD 2.0), and it looks like it might be nice to switch over to. Which is worth checking simple xml documents: DTD or Schema?

CRASH_OVERRIDE
12-31-2002, 12:52 AM
Specs for DSD:
http://www.brics.dk/DSD/dsd2.html

jkd
12-31-2002, 02:20 AM
Define simple. DTD is nice for relatively simple markup structure, but gets all confusing with anything more than simple.

Schema is nice that it is just another XML document. It is a lot more complicated to do simple things, but once you have a start, it'll make your life a lot easier.

I'd say go with Schema if you can. There is a terrible learning curve in my opinion, but it'll pay off in the long run.

Alex Vincent
12-31-2002, 03:54 AM
My quarter-byte:

I'd say start with a DTD schema, then after you've got that, start developing your XML Schema document. The DTD I typically use to define the basics of the language first. Schema gets much more complicated, as jkd pointed out, but sometimes it helps to have the basic framework figured out.

brothercake
12-31-2002, 04:03 AM
I've gone as far as knowing Schema exists and buying a book ... which I haven't had time to read :o

I guess I'll echo the other comments - DTD is simple enough to get started with XML, but I'm starting to feel its limitations after only a few weeks of working with it...

CRASH_OVERRIDE
01-01-2003, 04:44 PM
Schema sounds good. I'm gonna switch:thumbsup: . Just because of the fact that it's written in xml, and if I wanted to do something fancy, I can:cool: . Thanks for the opinions!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum