Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6

Thread: DTD or Schema?

  1. #1
    Regular Coder
    Join Date
    Aug 2002
    Location
    IN, USA
    Posts
    121
    Thanks
    0
    Thanked 0 Times in 0 Posts

    DTD or Schema?

    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?
    Just call me Crash...
    "Crash- and BURN!"
    -Cereal Killer

  • #2
    Regular Coder
    Join Date
    Aug 2002
    Location
    IN, USA
    Posts
    121
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Just call me Crash...
    "Crash- and BURN!"
    -Cereal Killer

  • #3
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    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.

  • #4
    Moderator
    Join Date
    May 2002
    Location
    Hayward, CA
    Posts
    1,460
    Thanks
    1
    Thanked 23 Times in 21 Posts
    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.
    "The first step to confirming there is a bug in someone else's work is confirming there are no bugs in your own."
    June 30, 2001
    author, Verbosio prototype XML Editor
    author, JavaScript Developer's Dictionary
    https://alexvincent.us/blog

  • #5
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I've gone as far as knowing Schema exists and buying a book ... which I haven't had time to read

    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...

  • #6
    Regular Coder
    Join Date
    Aug 2002
    Location
    IN, USA
    Posts
    121
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Schema sounds good. I'm gonna switch . Just because of the fact that it's written in xml, and if I wanted to do something fancy, I can . Thanks for the opinions!
    Just call me Crash...
    "Crash- and BURN!"
    -Cereal Killer


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •