次の方法で共有


isNillable Property

 

[This feature was only implemented for MSXML 6.0.]

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.

JScript 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 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++ 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.

Versioning

Implemented in: MSXML 6.0

Applies to

ISchemaElement Interface

See Also

element Element