prohibitedSubstitution Property

MSXML 5.0 SDK

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

prohibitedSubstitution Property

Returns a value from the SCHEMADERIVATIONMETHOD enumeration. The possible values are SCHEMADERIVATIONMETHOD_EXTENSION and SCHEMADERIVATIONMETHOD_RESTRICTION. The returned value specifies whether an <element> declaration that appears in a content model will be prevented from additionally validating elements.

See XML SOM Enumerated Constants for the integer values.

Validation might be prevented for one or both of the following two reasons.

  • The additional element contains an xsi:type attribute that identifies an extension or restriction for the type of the declared element.
  • The element is in a substitution group. This group has had a substitution performed against it using the element that has a declaration with the prohibitedSubstitution attribute.
[Script]

Implementation Syntax

var conProhibitedSubstitution = oISchemaComplexType.prohibitedSubstitution;

Parameters

None.

Return Values

conProhibitedSubstitution
An integer. The prohibited substitution for this complexType. The prohibited substitution can be one of the following:

SCHEMADERIVATIONMETHOD_EXTENSION

SCHEMADERIVATIONMETHOD_RESTRICTION

SCHEMADERIVATIONMETHOD_ALL

[Visual Basic]

Implementation Syntax

conProhibitedSubstitution = oISchemaComplexType.prohibitedSubstitution

Parameters

None.

Return Values

conProhibitedSubstitution
An integer. The prohibited substitution for this complexType. The prohibited substitution can be one of the following:

SCHEMADERIVATIONMETHOD_EXTENSION

SCHEMADERIVATIONMETHOD_RESTRICTION

SCHEMADERIVATIONMETHOD_ALL

[C/C++]

Implementation Syntax

HERESULT get_prohibitedSubstitution (SCHEMAFILTER* prohibitedSubstitution);

Parameters

prohibitedSubstitution [out,retval]
An integer. The prohibited substitutions for this complexType. The prohibited substitution can be one of the following:

SCHEMADERIVATIONMETHOD_EXTENSION

SCHEMADERIVATIONMETHOD_RESTRICTION

SCHEMADERIVATIONMETHOD_ALL

Return Values

S_OK
The value returned if successful.
E_POINTER
The value returned if the prohibitedSubstitution 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

Applies to: ISchemaComplexType Interface