http://xml.apache.org/http://www.apache.org/http://www.w3.org/

Home

Readme
Charter
Release Info

Installation
Download
Build Instructions

FAQs
Samples
API Docs

DOM C++ Binding
Programming
Migration Guide

Feedback
Bug-Reporting
PDF Document

Source Repository
User Mail Archive
Devel Mail Archive

SEnumVal
 

SEnumVal shows how to enumerate the markup decls in a Schema Grammar.

Running SEnumVal
 

This program parses the specified XML file, then shows how to enumerate the contents of the Schema Grammar.

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.

Here is a sample output from SEnumVal

cd xerces-c2_6_0-linux/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

--------------------------------------------
              



Copyright © 1999-2005 The Apache Software Foundation. All Rights Reserved.