Class
XMLContentModel
Description
Represents a parsed DTD element declaration. Expat defines this structure and XMLContentModel is a direct representation of it. It is passed to the ElementDecl event of XMLReader. This will be useful to anyone building DTD validation routines.
Constants
Type
Here are the constants that can be compared to the value of the Type property:
Value |
Constant |
---|---|
1 |
XML_CTYPE_EMPTY |
2 |
XML_CTYPE_ANY |
3 |
XML_CTYPE_MIXED |
4 |
XML_CTYPE_NAME |
5 |
XML_CTYPE_CHOICE |
6 |
XML_CYTPE_SEQ |
Quant
Here are the constants that can be compared to the value of the Quant property:
Value |
Constant |
---|---|
0 |
XML_CQUANT_NONE |
1 |
XML_CQUANT_OPT |
2 |
XML_CQUANT_REP |
3 |
XML_CQUANT_PLUS |
Property descriptions
XMLContentModel.Name
Name As String
The name of the item.
XMLContentModel.NumChildren
NumChildren As Integer
The number of children.
XMLContentModel.Quant
Quant As Integer
XML Content Quant.
Here are the constants that can be compared to the value of the Quant property:
Value |
Constant |
---|---|
0 |
XML_CQUANT_NONE |
1 |
XML_CQUANT_OPT |
2 |
XML_CQUANT_REP |
3 |
XML_CQUANT_PLUS |
XMLContentModel.Type
Type As Integer
XML content type.
Here are the constants that can be compared to the value of the Type property:
Value |
Constant |
---|---|
1 |
XML_CTYPE_EMPTY |
2 |
XML_CTYPE_ANY |
3 |
XML_CTYPE_MIXED |
4 |
XML_CTYPE_NAME |
5 |
XML_CTYPE_CHOICE |
6 |
XML_CYTPE_SEQ |
Method descriptions
XMLContentModel.Child
Child(Index As Integer) As XMLContentModel
Returns an XMLContentModel.
Notes
If Type is XML_CTYPE_EMPTY or XML_CTYPE_ANY then quant will be XML_CQUANT_NONE and the other fields will be zero or NULL. If Type is XML_CTYPE_MIXED, then quant will be None or REP and numChildren will contain the number of elements that may be mixed in and children point to an array of XMLContent cells that will be all of XML_CTYPE_NAME type with no quantification.
If Type is XML_CTYPE_NAME, then the name points to the name and the numChildren field will be zero and children will be NULL. The quant fields indicate any quantifiers placed on the name.
CHOICE and SEQ will have name NULL, the number of children in numChildren and children will point, recursively, to an array of XMLContent cells.
The EMPTY, ANY, and MIXED types will occur only at the top level.
Compatibility
All project types on all supported operating systems.