What happens if my XML is invalid according to the schema?

Jan 3, 2010 at 11:27 PM

I just attempted to load an XML file that was invalid (it was missing a required element defined in my schema).

I was surprised to see that no exception was thrown at runtime.

Is this a bug or is actual validation against the schema not something LINQ to XSD was designed to do?