whitespace Property
[This feature was only implemented for MSXML 6.0.]
Returns an integer that indicates a value from the SCHEMAWHITESPACE enumerated list. For more information about the whitespace
facet, see Data Type Facets.
The following table shows the SCHEMAWHITESPACE enumerated list.
Enumerated value | Integer value |
---|---|
SCHEMAWHITESPACE_NONE | -1 |
SCHEMAWHITESPACE_PRESERVE | 0 |
SCHEMAWHITESPACE_REPLACE | 1 |
SCHEMAWHITESPACE_COLLAPSE | 2 |
JScript Syntax
var intWhitespace = oISchemaType.whitespace;
Parameters
None.
Return Values
intWhitespace
An integer. The whitespace
facet of the restriction.
Example
The following snippet is taken from the Walk the SOM sample application. In this snippet, the whitespace
propertyis retrieved from the ISchemaType
object.
If oType.whitespace > 0 Then
res = res + printTab(t+1) + "<xsd:whitespace value='" & oType.whitespace & "'/>" + vbNewLine
End If
Visual Basic Syntax
intWhitespace = oISchemaType.whitespace
Parameters
None.
Return Values
intWhitespace
An integer. The whitespace
facet of the restriction.
C/C++ Syntax
HRESULT get_whitespace(SCHEMAWHITESPACE* whitespace);
Parameters
whitespace[out,retval]
An integer. The whitespace
facet string.
Return Values
S_OK
The value returned if successful.
E_POINTER
The value returned if the whitespace
parameter is NULL.
E_FAIL
The value returned if something else is wrong.
Note
If the facet is not used, the property will return "SCHEMAWHITESPACE_NONE".
Versioning
Implemented in: MSXML 6.0