> > 2. XSD's don't seem to provide much benefit in a stand-alone > > application besides helping create test data via tools like xmlSpy. I > > don't > > even see how in ColdFusion you can validate an XML using an associated > > XSD. > > And it doesn't look like XSL documents are based off of an XSD, so you > > still > > have to validate if field lengths, etc using code. Am I missing something > > here? > > Nope... XSDs are far from a panacea... they check structure and dialect. > Dat's it. > > CF 7 can validate an XSD and previous versions can do with outside help (COM > or Java).
This is incorrect. you can validate a number of things with a proper XSD. Beyond the actual document struction validation XSD supports many native data types. You can define your own and use them within your document. You can validate on ranges and numeric values. It supports enumerations, and most importantly you can validate on REGEX patterns. Check out w3schools for a good intro on creating XSD files. (then as has been said use xml validate) But just to warn you, the results aren't always pretty :) Also FYI coldfusion use XERCES from xml.apache.org for the validation. Anthony ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217630 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

