<?xml version="1.0" standalone="no"?>
<!--
 * Copyright 1999-2005 The Apache Software Foundation.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
-->

<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN" "http://forrest.apache.org/dtd/document-v20.dtd"
[
<!ENTITY % PROJECT-ENTITIES PUBLIC
   "-//Xerces-P//Xerces-P ENTITIES V1.0//EN//XML"
   "project-entities.ent">
%PROJECT-ENTITIES;
]>
<document> 
  <header> 
    <title>&PROJECT_NAME; Sample: SEnumVal</title> 
  </header> 
  <body> 

<section>
<title>Sample: SEnumVal</title>

    <section>
<title>SEnumVal</title>
        <p>SEnumVal shows how to enumerate the markup decls in a Schema Grammar.</p>

        <section>
<title>Running SEnumVal</title>
          <p>This program parses the specified XML file, then shows how to
            enumerate the contents of the Schema Grammar. </p>
<source>
Usage:
    perl SEnumVal.pl &lt;XML file&gt;

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.
</source>
          <p>Here is a sample output from SEnumVal</p>
<source>cd samples
perl SEnumVal.pl personal-schema.xml

Found Grammar: XML::Xerces::SchemaGrammar=HASH(0x82e9aa8)
Found Elements
Element Name: personnel, Content Model: (person,)
Element Name: person, Content Model: ((name,email,url),link)
Element Name: name, Content Model: (family,given)
Element Name: family, Content Model: 
Element Name: given, Content Model: 
Element Name: email, Content Model: 
Element Name: url, Content Model: EMPTY
Element Name: link, Content Model: EMPTY
personal-schema.xml: duration:  0 wallclock secs ( 0.00 usr +  0.00 sys =  0.00 CPU)
              </source>
        </section>
    </section>
</section>
</body>
</document>