demo for SASAX - 1.5

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

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

public class SimpleDemo
extends java.lang.Object
implements DemoConstants

Demonstration how to parse XML document by SASAX.

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="int" type="local:int"/>
 </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
SimpleDemo()
           
 
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

SimpleDemo

public SimpleDemo()
Method Detail

main

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

demo for SASAX - 1.5