getFeature Method

MSXML 5.0 SDK

Microsoft XML Core Services (MSXML) 5.0 - SAX2 Reference

getFeature Method

Returns a Boolean value that indicates whether a feature is enabled or disabled.

The MXValidator CoClass supports the following features:

  • "exhaustive-errors"
  • "use-inline-schema"
  • "use-schema-location"
[Visual Basic]

The Boolean return value indicates whether a feature is enabled or disabled. For example, if getFeature("exhaustive-errors") returns True, the MXValidator will return information for all validation errors.

Implementation Syntax

Function getFeature(strName As String) As Boolean

Usage Syntax

boolFeature = oMXValidator.getFeature(strName)

Parameters

strName
A string representing the name of the feature.

Return Values

boolFeature
A Boolean (True/False) value that indicates whether the feature is enabled or disabled. The following table indicates the features implemented for the MXValidator.

Feature Returns
"exhaustive-errors"

"use-inline-schema"

"use-schema-location"

A Boolean (True/False) value indicating whether the feature is enabled or disabled.
Other features Trappable error.

[C/C++]

Syntax

HRESULT getFeature(
   [in] BSTR strName,
   [out, retval] VARIANT_BOOL *fValue);

Parameters

strName [in]
The name of the feature.
fValue [out, retval]
Set to indicate whether the feature is enabled (TRUE) or disabled (FALSE)

Return Values

The following table indicates the features implemented for the MXValidator.

Feature Returns
"exhaustive-errors"

"use-inline-schema"

"use-schema-location"

S_OK — The fValue parameter contains a Boolean value indicating whether the feature specified in strName is enabled (TRUE) or disabled (FALSE).
Other features E_INVALIDARG

Remarks

Settings for the features of the MXValidator are as follows:

"exhaustive-errors"
True — (default) Report all validation errors. This feature is always enabled, and will always return TRUE.

False — The getFeature method of the MXValidator will not return FALSE. This feature cannot be disabled.

Access — (parsing) Read-only; (not parsing) Read/write.

"use-inline-schema"
True — Use inline schemas for validation.

False — (default) Do not use inline schemas for validation. Treat any inline schemas as XML instead.

Access — (parsing) Read-only; (not parsing) Read/write.

"use-schema-location"
True — (default) Use the xsi:schemaLocation and xsi:noNamespaceSchemaLocation attributes to load and use schemas.

False — Treat any schema location attributes as generic attributes.

Access — (parsing) Read-only; (not parsing) Read/write.

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

putFeature Method

Applies to: MXValidator CoClass