private static void LoadAttributes( Dictionary<string, XmlSchemaObject> xmlSchemaObjects,
XmlSchemaObjectCollection attributes)
{
foreach (XmlSchemaObject o in attributes)
{
var attribute = o as XmlSchemaAttribute;
var attributeGroup = o as XmlSchemaAttributeGroup;
var anyAttribute = o as XmlSchemaAnyAttribute;
if (attribute != null && !string.IsNullOrWhiteSpace( attribute.Name ) &&
!xmlSchemaObjects.ContainsKey( attribute.Name ))
{
xmlSchemaObjects.Add( attribute.Name, attribute );
}
if (attributeGroup != null)
{
int ii = 0;
}
if (anyAttribute != null)
{
int ii = 0;
}
}
}