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

XML SOM Enumerated Constants

All enumerated values are found in msxml2.idl or msxml5.dll type lib. There are six enumerations, provided in the following tables:

SOMITEMTYPE Enumerations

Used by the itemType property of the ISchemaItem interface.

Enumerated Type Value DEC Value HEX Value
SOMITEM_SCHEMA 4096 0x1000
SOMITEM_ATTRIBUTE 4097 0x1001
SOMITEM_ATTRIBUTEGROUP 4098 0x1002
SOMITEM_NOTATION 4099 0x1003
SOMITEM_IDENTITYCONSTRAINT 4352 0x1100
SOMITEM_KEY 4353 0x1101
SOMITEM_KEYREF 4354 0x1102
SOMITEM_UNIQUE 4355 0x1103
SOMITEM_ANYTYPE 8192 0x2000// also type mask
SOMITEM_DATATYPE 8448 0x2100// built-in type mask
SOMITEM_DATATYPE_ANYTYPE 8449 0x2101
SOMITEM_DATATYPE_ANYURI 8450 0x2102
SOMITEM_DATATYPE_BASE64BINARY 8451 0x2103
SOMITEM_DATATYPE_BOOLEAN 8452 0x2104
SOMITEM_DATATYPE_BYTE 8453 0x2105
SOMITEM_DATATYPE_DATE 8454 0x2106
SOMITEM_DATATYPE_DATETIME 8455 0x2107
SOMITEM_DATATYPE_DAY 8456 0x2108
SOMITEM_DATATYPE_DECIMAL 8457 0x2109
SOMITEM_DATATYPE_DOUBLE 8458 0x210A
SOMITEM_DATATYPE_DURATION 8459 0x210B
SOMITEM_DATATYPE_ENTITIES 8460 0x210C
SOMITEM_DATATYPE_ENTITY 8461 0x210D
SOMITEM_DATATYPE_FLOAT 8462 0x210E
SOMITEM_DATATYPE_HEXBINARY 8463 0x210F
SOMITEM_DATATYPE_ID 8464 0x2110
SOMITEM_DATATYPE_IDREF 8465 0x2111
SOMITEM_DATATYPE_IDREFS 8466 0x2112
SOMITEM_DATATYPE_INT 8467 0x2113
SOMITEM_DATATYPE_INTEGER 8468 0x2114
SOMITEM_DATATYPE_LANGUAGE 8469 0x2115
SOMITEM_DATATYPE_LONG 8470 0x2116
SOMITEM_DATATYPE_MONTH 8471 0x2117
SOMITEM_DATATYPE_MONTHDAY 8472 0x2118
SOMITEM_DATATYPE_NAME 8473 0x2119
SOMITEM_DATATYPE_NCNAME 8474 0x211A
SOMITEM_DATATYPE_NEGATIVEINTEGER 8475 0x211B
SOMITEM_DATATYPE_NMTOKEN 8476 0x211C
SOMITEM_DATATYPE_NMTOKENS 8477 0x211D
SOMITEM_DATATYPE_NONNEGATIVEINTEGER 8478 0x211E
SOMITEM_DATATYPE_NONPOSITIVEINTEGER 8479 0x211F
SOMITEM_DATATYPE_NORMALIZEDSTRING 8480 0x2120
SOMITEM_DATATYPE_NOTATION 8481 0x2121
SOMITEM_DATATYPE_POSITIVEINTEGER 8482 0x2122
SOMITEM_DATATYPE_QNAME 8483 0x2123
SOMITEM_DATATYPE_SHORT 8484 0x2124
SOMITEM_DATATYPE_STRING 8485 0x2125
SOMITEM_DATATYPE_TIME 8486 0x2126
SOMITEM_DATATYPE_TOKEN 8487 0x2127
SOMITEM_DATATYPE_UNSIGNEDBYTE 8488 0x2128
SOMITEM_DATATYPE_UNSIGNEDINT 8489 0x2129
SOMITEM_DATATYPE_UNSIGNEDLONG 8490 0x212A
SOMITEM_DATATYPE_UNSIGNEDSHORT 8491 0x212B
SOMITEM_DATATYPE_YEAR 8492 0x212C
SOMITEM_DATATYPE_YEARMONTH 8493 0x212D
SOMITEM_SIMPLETYPE 8704 0x2200
SOMITEM_COMPLEXTYPE 9216 0x2400
SOMITEM_PARTICLE 16384 0x4000 // particle mask
SOMITEM_ANY 16385 0x4001
SOMITEM_ANYATTRIBUTE 16386 0x4002
SOMITEM_ELEMENT 16387 0x4003
SOMITEM_GROUP 16640 0x4100 // group mask
SOMITEM_ALL 16641 0x4101
SOMITEM_CHOICE 16642 0x4102
SOMITEM_SEQUENCE 16643 0x4103
SOMITEM_EMPTYPARTICLE 16644 0x4104
SOMITEM_NULL 2048 0x0800
SOMITMEM_NULL_TYPE 10240 0x2800
SOMITEM_NULL_ANY 18433 0x4801
SOMITEM_NULL_ANYATTRIBUTE 18434 0x4802
SOMITEM_NULL_ELEMENT 18435 0x4803

SCHEMAUSE Enumerations

Used by the use property of the ISchemaAttribute interface.

Enumerated Type Value DEC Value HEX Value
SCHEMAUSE_OPTIONAL 0 0x0000
SCHEMAUSE_PROHIBITED 1 0x0001
SCHEMAUSE_REQUIRED 2 0x0002

SCHEMADERIVATIONMETHOD Enumerations

Used by the substitutionGroupExclusions property of the ISchemaElement interface, the disallowedSubstitutions property of the ISchemaElement interface, the final property of the ISchemaType interface, and the prohibitedSubstitution property of the ISchemaComplexType interface.

Enumerated Type Value DEC Value HEX Value
SCHEMADERIVATIONMETHOD_EMPTY 0 0x0000
SCHEMADERIVATIONMETHOD_SUBSTITUTION 1 0x0001
SCHEMADERIVATIONMETHOD_EXTENSION 2 0x0002
SCHEMADERIVATIONMETHOD_RESTRICTION 4 0x0004
SCHEMADERIVATIONMETHOD_LIST 8 0x0008
SCHEMADERIVATIONMETHOD_UNION 16 0x0010
SCHEMADERIVATIONMETHOD_ALL 255 0x00FF
SCHEMADERIVATIONMETHOD_NONE 256 0x0100

SCHEMACONTENTTYPE Enumeration

Used by the contentType property of the ISchemaComplexType interface.

Enumerated Type Value DEC Value
SCHEMACONTENTTYPE_EMPTY 0
SCHEMACONTENTTYPE_TEXTONLY 1
SCHEMACONTENTTYPE_ELEMENTONLY 2
SCHEMACONTENTTYPE_MIXED 3

SCHEMAPROCESSCONTENTS Enumerations

Used by the processContents property of the ISchemaAny interface.

Enumerated Type Value DEC Value
SCHEMAPROCESSCONTENTS_NONE 0
SCHEMAPROCESSCONTENTS_SKIP 1
SCHEMAPROCESSCONTENTS_LAX 2
SCHEMAPROCESSCONTENTS_STRICT 3

SCHEMAWHITESPACE Enumerations

Used by the whitespace property of the ISchemaType interface.

Enumerated Type Value DEC Value
SCHEMAWHITESPACE_NONE -1
SCHEMAWHITESPACE_PRESERVE 0
SCHEMAWHITESPACE_REPLACE 1
SCHEMAWHITESPACE_COLLAPSE 2

SCHEMATYPEVARIETY Enumerations

Used by the variety property of the ISchemaType interface.

Enumerated Type Value DEC Value
SCHEMATYPEVARIETY_NONE -1
SCHEMATYPEVARIETY_ATOMIC 0
SCHEMATYPEVARIETY_LIST 1
SCHEMATYPEVARIETY_UNION 2