torsdag, april 20, 2006

 

XmlSchema.IsValid is not a boolean

(via Mårten)

Solving The XSD Versioning Problem
Good post by Tim Ewald.
Not having put any deeper thoughts about it; it all seems pretty fair.
What I totally agree with him is that schema validation is not a boolean thing.
I think one have to define, before designing the XSD document, what the criterias are for an invalid XML document instance for each case. Then express as much as possible in the XSD and document all other behaviours (i.e. possible default values for missing elements from clients using an old schema etc.) in some other way (written API doc?).

Kommentarer: Skicka en kommentar

Prenumerera på Kommentarer till inlägget [Atom]





<< Startsida

Prenumerera på Inlägg [Atom]