aboutsummaryrefslogtreecommitdiff
path: root/examples/performance/test.xsd
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2014-04-30 19:52:18 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2014-04-30 19:52:18 +0200
commit960adfbc3e19b684f5f3839782f2c1399eabd533 (patch)
tree84abb6d637abf7fbafc58f1fa5f73340c76669df /examples/performance/test.xsd
parent387fbf589e73d96af9050afa121ef8b5e5370c4e (diff)
Add performance example
Diffstat (limited to 'examples/performance/test.xsd')
-rw-r--r--examples/performance/test.xsd49
1 files changed, 49 insertions, 0 deletions
diff --git a/examples/performance/test.xsd b/examples/performance/test.xsd
new file mode 100644
index 0000000..e85b2ac
--- /dev/null
+++ b/examples/performance/test.xsd
@@ -0,0 +1,49 @@
+<?xml version="1.0"?>
+
+<!--
+
+file : examples//performance/test.xsd
+copyright : not copyrighted - public domain
+
+-->
+
+<schema targetNamespace="test" xmlns:t="test"
+ xmlns="http://www.w3.org/2001/XMLSchema">
+
+ <simpleType name="enum">
+ <restriction base="string">
+ <enumeration value="romance"/>
+ <enumeration value="fiction"/>
+ <enumeration value="horror"/>
+ <enumeration value="history"/>
+ <enumeration value="philosophy"/>
+ </restriction>
+ </simpleType>
+
+ <complexType name="record">
+ <sequence>
+ <element name="int" type="unsignedInt"/>
+ <element name="double" type="double"/>
+ <element name="name" type="NCName"/>
+ <element name="string" type="string" minOccurs="0" maxOccurs="1"/>
+ <choice>
+ <element name="choice1" type="string"/>
+ <element name="choice2" type="string"/>
+ <element name="choice3" type="string"/>
+ <element name="choice4" type="string"/>
+ </choice>
+ <element name="enum" type="t:enum"/>
+ </sequence>
+ <attribute name="apple" type="boolean"/>
+ <attribute name="orange" type="unsignedLong" use="required"/>
+ </complexType>
+
+ <complexType name="root">
+ <sequence>
+ <element name="record" type="t:record" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+
+ <element name="root" type="t:root"/>
+
+</schema>