contentModel Property
[This feature was only implemented for MSXML 6.0.]
Returns an ISchemaModelGroup
object. This object contains information about the content model of the complexType
being queried. The ISchemaModelGroup
interface is used to obtain further information about the object.
JScript Syntax
var oContentModel = oISchemaComplexType.contentModel;
Parameters
None.
Return Values
oContentModel
An object. The content model of the type.
Example
The following snippet is taken from the Walk the SOM sample application. In this snippet, the contentModel
object is retrieved from the ISchemaComplexType
object and passed to the processGroup()
function. The processGroup
function examines several elements of the contentModel
object.
If oComplex.contentType =SCHEMACONTENTTYPE_ELEMENTONLY Then
res = res + printRemark("elementonly ")
res = res + processGroup(oComplex.contentModel, t+1)
End If
Visual Basic Syntax
Set oContentModel = oISchemaComplexType.contentModel
Parameters
None.
Return Values
oContentModel
An object. The content model of the type.
C/C++ Syntax
HERESULT get_contentModel (ISchemaModelGroup** contentModel);
Parameters
contentModel[out,retval]
An object. The content model of the type.
Return Values
S_OK
The value returned if successful.
E_POINTER
The value returned if the contentModel
object is NULL.
E_FAIL
The value returned if something else is wrong.
Versioning
Implemented in: MSXML 6.0