Skip to Content
.NET & XML
book

.NET & XML

by Niel M. Bornstein
November 2003
Intermediate to advanced
476 pages
14h 38m
English
O'Reilly Media, Inc.
Content preview from .NET & XML

Name

XmlSchemaAttribute — System.Xml.Schema (system.xml.dll)    class 

Synopsis

public class XmlSchemaAttribute : XmlSchemaAnnotated {
// Public Constructors
   public XmlSchemaAttribute( );  
// Public Instance Properties
   public object AttributeType{get; } 
   public string DefaultValue{set; get; } 
   public string FixedValue{set; get; } 
   public XmlSchemaForm Form{set; get; } 
   public string Name{set; get; } 
   public XmlQualifiedName QualifiedName{get; } 
   public XmlQualifiedName RefName{set; get; } 
   public XmlSchemaSimpleType SchemaType{set; get; } 
   public XmlQualifiedName SchemaTypeName{set; get; } 
   public XmlSchemaUse Use{set; get; } 
}

This type represents the xs:attribute element, which is used to define an XML attribute. Its DefaultValue, Form, FixedValue, and Use properties provide access to the default, form, fixed, and use attributes. The Name and RefName properties provide two ways to access the name attribute; either as a string or as a System.Xml.XmlQualifiedName representing the name of an attribute defined in this schema or elsewhere, when given a namespace prefix. The SchemaType and SchemaTypeName properties provide two ways to access the type attribute; either as an XmlSchemaSimpleType instance defined in this schema or as a System.Xml.XmlQualifiedName. After compilation, the AttributeType property provides read-only access to the CLR type based on the type attribute, and the QualifiedName property provides read-only access to the qualified name of the attribute.

Hierarchy ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Applied XML Programming for Microsoft® .NET

Applied XML Programming for Microsoft® .NET

Dino Esposito
XML Hacks

XML Hacks

Michael Fitzgerald

Publisher Resources

ISBN: 0596003978Supplemental ContentErrata