Programmer's Guide > Interfaces > W3C ElementEditVAL interface > ContentTypeVAL enumeration
  
ContentTypeVAL enumeration
An integer indicating the content type of an element.
The ContentTypeVAL enumeration has the following constants of type unsigned short.
VAL_EMPTY_CONTENTTYPE = 1
The content model does not allow any content. If the schema is a W3C XML schema, this corresponds to the empty content type; and if the schema is a DTD, this corresponds to the EMPTY content model.
VAL_ANY_CONTENTTYPE = 2
The content model contains unordered child information item(s), i.e., element, processing instruction, unexpanded entity reference, character, and comment information items as defined in the XML Information Set. If the schema is a DTD, this corresponds to the ANY content model.
VAL_MIXED_CONTENTTYPE = 3
The content model contains a sequence of ordered element information items optionally interspersed with character data. If the schema is a W3C XML schema, this corresponds to the mixed content type.
VAL_ELEMENTS_CONTENTTYPE = 4
The content model contains a sequence of element information items optionally separated by whitespace. If the schema is a DTD, this is the element content content model; and if the schema is a W3C XML schema, this is the element-only content type.
VAL_SIMPLE_CONTENTTYPE = 5
The content model contains character information items. If the schema is a W3C XML schema, then the element has a content type of VAL_SIMPLE_CONTENTTYPE if the type of the element is a simple type definition, or the type of the element is a complexType whose {content type} is a simple type definition.