Best way to read annotated schemas ?
What is the best way (easiest to code/maintain) to read annotations from within an annotated schema ? Either using foreign namespaced attributes like this:
<xsd:element name="CustomerName" type="xsd:string"myNS:Foo="MyStuff" />
or using appinfo elements like this:
<xsd:element name="CustomerName" type="xsd:string">
<xsd:annotation>
<xsd:appinfo>
<myNS:Foo>MyStuff Here</myNS:Foo>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
Is it best to use the xmlschema objects in .NET ? Or maybe just treat the schema as an XML document and use XPath?.
Any examples of reading appinfo annotations or foreign attributes ?
Thanks,
Andy Mackie.

