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)
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 |
RepetitionDemo
public RepetitionDemo()
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Invoke demonstration.