System.Xml.Schema.XmlSchemaInference.FindGlobalElement C# (CSharp) Method

FindGlobalElement() private method

private FindGlobalElement ( string namespaceURI, string localName, XmlSchema &parentSchema ) : XmlSchemaElement
namespaceURI string
localName string
parentSchema XmlSchema
return XmlSchemaElement
            internal XmlSchemaElement FindGlobalElement(string namespaceURI, string localName, out XmlSchema parentSchema)
            {
                ICollection col = this.schemaSet.Schemas(namespaceURI);
                XmlSchemaElement xse = null;
                parentSchema = null;
                foreach(XmlSchema schema in col) 
                {
                    xse = FindElement(schema.Items, localName);
                    if (xse != null) 
                    {
                        parentSchema = schema;
                        return xse;
                    }
                }
                return null;
            }