Image

Schema vs DTD

Alright - so I'm about to write a Java app - probably with a web interfact via servlet or JSP or something.

It needs to read an XML Schema or DTD to get the parameters it needs for the next step.

But I'm confused as to whether I should use a Schema or a DTD - what are the pros and cons of each?

[Edit - thanks guys - I think given the project, that an XML Schema is more along the lines of what I need]