isNillable Property

MSXML 5.0 SDK

Microsoft XML Core Services (MSXML) 5.0 for Microsoft Office - SOM Reference

isNillable Property

This function retrieves the nillable attribute of the element. A nillable element is valid with no content, even if its content type requires content. For an element to be nillable, its declaration must have the attribute xsd:nillable with a value of true, and its instance element must have the attribute xsi:nil with a value of true. The element must be empty, but it can have attributes declared in its <complexType> declaration.

[Script]

Implementation Syntax

var bolIsNillable = oISchemaElement.isNillable;

Parameters

None.

Return Values

bolIsNillable
A Boolean. The nillable attribute of the element. Returns true if the element is nillable.
[Visual Basic]

Implementation Syntax

bolIsNillable = oISchemaElement.isNillable

Parameters

None.

Return Values

bolIsNillable
A Boolean. The nillable attribute of the element. Returns true if the element is nillable.
[C/C++]

Implementation Syntax

HRESULT get_isNillable(VARIANT_BOOL* isNillable);

Parameters

isNillable [out,retval]
A Boolean. Returns VARIANT_TRUE if the element is nillable.

Return Values

S_OK
The value returned if successful.
E_POINTER
The value returned if the isNillable parameter is NULL.

To view reference information for Visual Basic or C/C++ only, click the Language Filter button Language Filter in the upper-left corner of the page.

See Also

element Element

Applies to: ISchemaElement Interface