This documentation is archived and is not being maintained.

XmlSchema.ElementFormDefault Property

Gets or sets the form for elements declared in the target namespace of the schema.

[Visual Basic]
Public Property ElementFormDefault As XmlSchemaForm
[C#]
public XmlSchemaForm ElementFormDefault {get; set;}
[C++]
public: __property XmlSchemaForm get_ElementFormDefault();
public: __property void set_ElementFormDefault(XmlSchemaForm);
[JScript]
public function get ElementFormDefault() : XmlSchemaForm;
public function set ElementFormDefault(XmlSchemaForm);

Property Value

Attribute for ElementFormDefault. The default value is Unqualified.

Optional.

Remarks

The value must be one of the XmlSchemaForm values shown in the following table.

Enum Description
Qualified Elements from the target namespace must be qualified with the namespace prefix.
Unqualified Elements from the target namespace are not required to be qualified with the namespace prefix.

This value is the global default for all elements declared in the target namespace. Individual elements can override this setting for the local scope by using the form attribute.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

XmlSchema Class | XmlSchema Members | System.Xml.Schema Namespace

Show: