Daniel Cazzulino's Blog : SOM small inconsistency

Subscriptions

News

Source code published in this blog is public domain unless otherwise specified.

 

kzu in LinkedIn

  Microsoft MVP Profile

 Contact

Post Categories

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.

posted on Monday, January 12, 2004 10:35 AM by kzu