Class XmlSchemaExtensions
A static class that contains extension methods for the System.Xml.Schema.XmlSchema class.
Inheritance
System.Object
XmlSchemaExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Juhta.Net.Extensions
Assembly: Juhta.Net.dll
Syntax
public static class XmlSchemaExtensions
Methods
| Improve this Doc View SourceGetAttributeDefaultValue(XmlSchema, String, String)
Gets an attribute's default value from the current XmlSchema instance.
Declaration
public static string GetAttributeDefaultValue(this XmlSchema schema, string complexTypeName, string attributeName)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.Schema.XmlSchema | schema | Specifies the current XmlSchema object. |
System.String | complexTypeName | Specifies the name of a complex type containing the attribute. |
System.String | attributeName | Specifies an attribute name. |
Returns
Type | Description |
---|---|
System.String | Returns the default value of the attribute or null if the complex type or the attribute has not been defined in the schema. |