System::Xml::Schema::XmlSchemaElement class

XmlSchemaElement class

Represents the element element from XML Schema as specified by the World Wide Web Consortium (W3C). This class is the base class for all particle types and is used to describe an element in an XML document.

class XmlSchemaElement : public System::Xml::Schema::XmlSchemaParticle

Methods

MethodDescription
get_Block()Returns a Block derivation.
get_BlockResolved()Returns the post-compilation interpretation of the Block value.
get_Constraints()Returns the collection of constraints on the element.
get_DefaultValue()Returns the default value of the element if its content is a simple type or content of the element is textOnly.
get_ElementSchemaType()Returns an XmlSchemaType object representing the type of the element based on the XmlSchemaElement::get_SchemaType or XmlSchemaElement::get_SchemaTypeName values of the element.
get_ElementType()Returns an object based on the XmlSchemaElement or XmlSchemaElement of the element, which holds the post-compilation interpretation of the ElementType value.
get_Final()Returns the Final value to indicate that no further derivations are allowed.
get_FinalResolved()Returns the post-compilation interpretation of the Final value.
get_FixedValue()Returns the fixed value.
get_Form()Returns the form for the element.
get_IsAbstract()Returns information to indicate if the element can be used in an instance document.
get_IsNillable()Returns information that indicates if xsi:nil can occur in the instance data. Indicates if an explicit nil value can be assigned to the element.
get_Name()Returns the name of the element.
get_QualifiedName()Returns the actual qualified name for the given element.
get_RefName()Returns the reference name of an element declared in this schema (or another schema indicated by the specified namespace).
get_SchemaType()Returns the type of the element. This can either be a complex type or a simple type.
get_SchemaTypeName()Returns the name of a built-in data type defined in this schema or another schema indicated by the specified namespace.
get_SubstitutionGroup()Returns the name of an element that is being substituted by this element.
set_Block(XmlSchemaDerivationMethod)Sets a Block derivation.
set_DefaultValue(const String&)Sets the default value of the element if its content is a simple type or content of the element is textOnly.
set_Final(XmlSchemaDerivationMethod)Sets the Final value to indicate that no further derivations are allowed.
set_FixedValue(const String&)Sets the fixed value.
set_Form(XmlSchemaForm)Sets the form for the element.
set_IsAbstract(bool)Sets information to indicate if the element can be used in an instance document.
set_IsNillable(bool)Sets information that indicates if xsi:nil can occur in the instance data. Indicates if an explicit nil value can be assigned to the element.
set_Name(const String&)Sets the name of the element.
set_RefName(const SharedPtr<XmlQualifiedName>&)Sets the reference name of an element declared in this schema (or another schema indicated by the specified namespace).
set_SchemaType(const SharedPtr<XmlSchemaType>&)Sets the type of the element. This can either be a complex type or a simple type.
set_SchemaTypeName(const SharedPtr<XmlQualifiedName>&)Sets the name of a built-in data type defined in this schema or another schema indicated by the specified namespace.
set_SubstitutionGroup(const SharedPtr<XmlQualifiedName>&)Sets the name of an element that is being substituted by this element.
XmlSchemaElement()Initializes a new instance of the XmlSchemaElement class.

Typedefs

TypedefDescription
PtrAn alias for shared pointer to an instance of this class.

Remarks

Objects of this class should only be allocated using System::MakeObject() function. Never create instances of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.

See Also