xsd vs dtd

Hi,
what are advangages, disadvantages, practical uses  of using XSD over DTD.  Any link which has practical simple example using XML, XSD, Java. Please advise
LVL 7
gudii9Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jim HornMicrosoft SQL Server Developer, Architect, and AuthorCommented:
Tell you what ... instead of us writing a book on a 20-ish word question, please tell us what business requirements you have for going down this road, with enough detail for us to respond without asking too many follow-up questions, and we'll take it from there.
0
Geert BormansInformation ArchitectCommented:
I concur with Jim that you should be more specific of what your business requirements are,
however, here is an almost 15 years old writup from David Mertz that still has very good value
http://www.ibm.com/developerworks/library/x-matters7/
Note that at the time he wrote this, I was very skeptical too, but I have learned to appreciate the value of XSD and hardly use DTS anymore, so some things in the article need to be taken with a grain of salt
Number one obviously is Rich Typing
What I miss in the article is the powerfull alternative to ID/IDREF schema has for uniqueness constraints and references
But all arguments are pure technical
Note also that starting XSD1.1 XSD has included a very powerfull mechanism for assertions. It is the business constraints power of schematron added to XSD
Why we need to know why you need to know? Some applications still only support DTD, some other applications no longer do. So tell us what you need and we will tell you what you need.
Open ended generic questions never get a good answer
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
gudii9Author Commented:
my requirement is to able to write a simle java program (using eclipse IDE) and take a sample simple XML and corresponding DTD and XSD and operate XML using XSD, DTD and do validation kind of stuff and if posible some cosmetic changes on XML. No big business requirement behind my question just for learning XML, XSD etc being a java developer
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Geert BormansInformation ArchitectCommented:
so, from the learning point of view, the developerworxs reference is a good place to start

and also stuff has evolved a lot,
the XML basics for java are well described here
http://www.cafeconleche.org/books/xmljava/
0
Geert BormansInformation ArchitectCommented:
when I say "stuff has evolved a lot",
I mean that Xerces as a parser had a lot of evolution, but the required functionality is still the same
and you would streams now in java... but all of that I consider basic Java training and is not related to the XSD DTD discussion,
in short: you will find a lot of value, still relevant, in the referenced book
0
gudii9Author Commented:
any good video online tutorials on these topics preferable free or even paid. please advise
0
Geert BormansInformation ArchitectCommented:
0
Geert BormansInformation ArchitectCommented:
0
Geert BormansInformation ArchitectCommented:
0
gudii9Author Commented:
i will check them out
0
Geert BormansInformation ArchitectCommented:
you are welcome

it is funny that telling you to get lost is worth 200 points and doing all the effort is worth 300 points :-)
0
gudii9Author Commented:
i did not realize. Next time i will pay more attention
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
XML

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.