private static XmlElement FindSimpleType(XmlElement schema, string name)
{
for (XmlNode n = schema.FirstChild; n != null; n = n.NextSibling)
{
if (n is XmlElement)
{
XmlElement e = (XmlElement)n;
if (e.GetAttribute(Keywords.NAME) == name)
{
return e;
}
}
}
return null;
}// FindSimpleType