ATMLSchemaLibrary.managers.SchemaManager.GetAttributes C# (CSharp) Method

GetAttributes() public static method

public static GetAttributes ( XmlSchemaElement element ) : List
element System.Xml.Schema.XmlSchemaElement
return List
        public static List<XmlSchemaAttribute> GetAttributes( XmlSchemaElement element )
        {
            var attributes = new List<XmlSchemaAttribute>();
            if (element != null && element.ElementSchemaType != null)
            {
                var complexType = element.ElementSchemaType as XmlSchemaComplexType;
                if (complexType != null)
                    attributes = GetAttributes( complexType );
            }
            return attributes;
        }

Same methods

SchemaManager::GetAttributes ( XmlSchemaComplexType complexType ) : List