![](resources/join.gif)
![Xerces-C++ 3.1.0](graphics/sect-2-label.jpg)
![Readme](graphics/index-label-3.jpg)
![Installation](graphics/install-3-label-3.jpg)
![Build Instructions](graphics/build-3-label-3.jpg)
![](resources/separator-space.gif)
![Programming](graphics/program-3-label-3.jpg)
![Samples](graphics/samples-3-label-3.jpg)
![FAQs](graphics/faqs-3-label-3.jpg)
![](resources/separator-space.gif)
![API Reference](graphics/api-3-label-3.jpg)
![DOM C++ Binding](graphics/ext-64-label-3.jpg)
![Migration Guide](graphics/migrate-3-label-3.jpg)
![](resources/close.gif)
|
| |
SEnumVal shows how to enumerate the markup declarations in a Schema Grammar.
| |
This program parses the specified XML file, then shows how to
enumerate the contents of the Schema Grammar.
![](resources/void.gif) | ![](resources/void.gif) | ![](resources/void.gif) | ![](resources/void.gif) |
Usage:
SEnumVal <XML file>
This program parses a file, then shows how to enumerate the
contents of the Schema Grammar. Essentially, shows how one can
access the Schema information stored in internal data structures.
| ![](resources/void.gif) | ![](resources/void.gif) | ![](resources/void.gif) | ![](resources/void.gif) |
Here is a sample output from SEnumVal
![](resources/void.gif) | ![](resources/void.gif) | ![](resources/void.gif) | ![](resources/void.gif) | cd xerces-c-3.1.0/samples/data
SEnumVal personal-schema.xml
Name: personnel
Model Type: Children
Create Reason: Declared
ContentType: OneOrMore
Content Model: (person)+
ComplexType:
TypeName: ,C0
ContentType: OneOrMore
--------------------------------------------
Name: person
Model Type: Children
Create Reason: Declared
ContentType: Sequence
Content Model: (name,email*,url*,link?)
ComplexType:
TypeName: ,C1
ContentType: Sequence
Attributes:
Name: salary
Type: CDATA
Default Type: #IMPLIED
Base Datatype: Decimal
Facets:
fractionDigits=0
Name: id
Type: ID
Default Type: #REQUIRED
Base Datatype: ID
Name: contr
Type: CDATA
Default Type: #DEFAULT
Value: false
Base Datatype: string
Enumeration:
true
false
Name: note
Type: CDATA
Default Type: #IMPLIED
Base Datatype: string
--------------------------------------------
Name: name
Model Type: Children
Create Reason: Declared
ContentType: All
Content Model: All(family,given)
ComplexType:
TypeName: ,C3
ContentType: All
--------------------------------------------
Name: family
Model Type: Simple
Create Reason: Declared
Base Datatype: string
--------------------------------------------
Name: given
Model Type: Simple
Create Reason: Declared
Base Datatype: string
--------------------------------------------
Name: email
Model Type: Simple
Create Reason: Declared
Base Datatype: string
--------------------------------------------
Name: url
Model Type: Empty
Create Reason: Declared
Content Model: EMPTY
ComplexType:
TypeName: ,C4
Attributes:
Name: href
Type: CDATA
Default Type: #DEFAULT
Value: http://
Base Datatype: string
--------------------------------------------
Name: link
Model Type: Empty
Create Reason: Declared
Content Model: EMPTY
ComplexType:
TypeName: ,C5
Attributes:
Name: subordinates
Type: IDREFS
Default Type: #IMPLIED
Base Datatype: List
Name: manager
Type: IDREF
Default Type: #IMPLIED
Base Datatype: IDREF
--------------------------------------------
| ![](resources/void.gif) | ![](resources/void.gif) | ![](resources/void.gif) | ![](resources/void.gif) |
|
|
|
|