Hi, I'm fairly new to using Xerces however I have used XSD before several times for a few projects.
Here is what I can tell you: Anything in DTD can be expressed exactly in XSD. However not the other way around. XSD is more powerful in a lot of senses. I never used DTD's before, but when I had to choice of using it or XSD I picked up doing things in XSD fairly easily. The W3C has a great tutorial online, " xsd tutorial " in google. Also, do not forget that XSD/DTD are good for validating well defined XML instance documents --- that you should not try to get overly fancy to meet application level specific validation. Certain things cannot be expressed with either method; such as "cooccurrence constraints". If you do need validation of a higher level I recommend using an XSLT processor to run through Schematron templates ( which can be embedded in XSD in a different namespace). We were originally trying to get XSD to do a lot and we realized that Schematron(soon to be ISO standard) is the perfect fit. Good luck! On 4/17/08, Barry, Gregory P. <[EMAIL PROTECTED]> wrote: > I posted to dev, but wanted to post to user in the event it is more > applicable to this group. > > > > Hi, > > > > I am developing on the windows platform using SAX and having the xml > files specify a DTD. However, Visual Studios as an XML designer that > works in XSD and not DTD. I am somewhat familiar with DTD but not so > much with XSD. If we go with the XSD approach, does this drastically > change the format/content of the xml files we are parsing. I am > developing a system that parses from another system and am setting up > the requirements for the other systems to use to be compliant with our > input. > > > > Any quick thoughts or pointers are welcome, details are always welcomed > ;-) > > > > Thanks again, > > > > --Greg > > > > -- Attila Software Developer [EMAIL PROTECTED]
