SOM small inconsistency
Have you noticed that even if the
W3C WXS spec allows annotations in the root
<xs:schema> element, the corresponding .NET class
XmlSchema does not inherit from
XmlSchemaAnnotated as almost every other element does?
Looks like an "inheritance bug" to me ;)
[Update]: Dare corrected my mistake by clarifying that there can be multiple annotations, unlike the other SchemaAnnotated-derived classes. However, I couldn't find any XmlSchema member exposing such information. Therefore, the only workaround seems to be to keep an XPathDocument for the schema too.