src/Misc/EFTools/XmlCore/Model/Validation/AttributeContentValidator.cs
/// <summary>
///     Returns the XmlSchemaType for the given XmlSchemaAttribute
/// </summary>
/// <param name="xa"></param>
/// <returns></returns>
Returns the XmlSchemaType for the given XmlSchemaAttribute
Returns the XmlSchemaType for the given XmlSchemaAttribute
private XmlSchemaType GetXmlSchemaTypeFromXmlSchemaAttribute(XmlSchemaAttribute xa)
        {
            if (xa == null)
            {
                return null;
            }
            XmlSchemaType xst = xa.SchemaType;
            if (xst == null)
            {
                if (SchemaSet.GlobalTypes.Contains(xa.SchemaTypeName))
                {
                    xst = SchemaSet.GlobalTypes[xa.SchemaTypeName] as XmlSchemaType;
                }
            }
            if (xst == null)
            {
                return xa.AttributeSchemaType;
            }
            return xst;
        }
private XmlSchemaType GetXmlSchemaTypeFromXmlSchemaAttribute ( XmlSchemaAttribute xa ) { if ( xa == null ) { return null ; } XmlSchemaType xst = xa . SchemaType ; if ( xst == null ) { if ( SchemaSet . GlobalTypes . Contains ( xa . SchemaTypeName ) ) { xst = SchemaSet . GlobalTypes [ xa . SchemaTypeName ] as XmlSchemaType ; } } if ( xst == null ) { return xa . AttributeSchemaType ; } return xst ; }
Returns the XmlSchemaType for the given XmlSchemaAttribute
Returns the XmlSchemaType for the given XmlSchemaAttribute
None
xa
XmlSchemaAttribute
None