demo for SASAX - 1.5

jp.ne.dti.lares.foozy.sasax
Class RepetitionDemo

java.lang.Object
  |
  +--jp.ne.dti.lares.foozy.sasax.RepetitionDemo
All Implemented Interfaces:
DemoConstants

public class RepetitionDemo
extends java.lang.Object
implements DemoConstants

Demonstration how to parse repetition of element.

This class can parse XML document, which matches against below schema.

 <xs:schema 
   targetNamespace="http://www.lares.dti.ne.jp/~foozy/"
   xmlns:xs="http://www.w3.org/2001/XMLSchema"
   xmlns:local="http://www.lares.dti.ne.jp/~foozy/">
 
   <xs:simpleType name="int">
     <xs:restriction base="xs:integer"/>
   </xs:simpleType>
 
   <xs:element name="list">
     <xs:complexType>
       <xs:sequence>
         <xs:element name="int" type="local:int" 
           minOccurs="0" maxOccurs="unbounded"
           form="qualified"/>
       </xs:sequence>
     </xs:complexType>
   </xs:element>
 </xs:schema>
 

This class reads XML document in from standard input at invocation of main(String[]).

Author:
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>(code/doc)

Fields inherited from interface jp.ne.dti.lares.foozy.sasax.DemoConstants
COMPOSITE_L_NAME, ENVELOPE_L_NAME, INT_L_NAME, LIST_L_NAME, STRING_L_NAME, URI
 
Constructor Summary
RepetitionDemo()
           
 
Method Summary
static void main(java.lang.String[] args)
          Invoke demonstration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepetitionDemo

public RepetitionDemo()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Invoke demonstration.

demo for SASAX - 1.5