private void HandleAnnotations (XmlSchemaAnnotation an, bool nested)
{
foreach (XmlSchemaObject content in an.Items) {
XmlSchemaAppInfo ai = content as XmlSchemaAppInfo;
if (ai != null) {
foreach (XmlNode n in ai.Markup) {
XmlElement el = n as XmlElement;
// #325464 debugging
//Console.WriteLine ("Name: " + el.LocalName + " NS: " + el.NamespaceURI + " Const: " + XmlConstants.MsdataNamespace);
if (el != null && el.LocalName == "Relationship" && el.NamespaceURI == XmlConstants.MsdataNamespace)
HandleRelationshipAnnotation (el, nested);
#if NET_2_0
if (el != null && el.LocalName == "DataSource" && el.NamespaceURI == XmlConstants.MsdatasourceNamespace)
HandleDataSourceAnnotation (el, nested);
#endif
}
}
}
}