ATMLSchemaLibrary.XsdUtils.extractSimpleTypes C# (CSharp) Method

extractSimpleTypes() public static method

public static extractSimpleTypes ( XmlSchema schema ) : List
schema System.Xml.Schema.XmlSchema
return List
        public static List<XmlSchemaSimpleType> extractSimpleTypes(XmlSchema schema)
        {
            List<XmlSchemaSimpleType> simpleTypes = new List<XmlSchemaSimpleType>();
            foreach (object item in schema.Items)
            {
                if (item is XmlSchemaSimpleType)
                {
                    XmlSchemaSimpleType simpleType = (XmlSchemaSimpleType)item;
                    simpleTypes.Add(simpleType);
                }
            }
            return simpleTypes;
        }