diff options
Diffstat (limited to 'examples/xsd')
-rw-r--r-- | examples/xsd/bigxml.xsd | 16 | ||||
-rw-r--r-- | examples/xsd/table.xsd | 24 |
2 files changed, 40 insertions, 0 deletions
diff --git a/examples/xsd/bigxml.xsd b/examples/xsd/bigxml.xsd new file mode 100644 index 0000000..da58f2d --- /dev/null +++ b/examples/xsd/bigxml.xsd @@ -0,0 +1,16 @@ +<?xml version="1.0"?> +<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> + + <xs:element name="root"> + <xs:complexType> + <xs:sequence> + + <xs:element name="a" maxOccurs="unbounded"> + <xs:complexType/> + </xs:element> + + </xs:sequence> + </xs:complexType> + </xs:element> + +</xs:schema> diff --git a/examples/xsd/table.xsd b/examples/xsd/table.xsd new file mode 100644 index 0000000..c24332a --- /dev/null +++ b/examples/xsd/table.xsd @@ -0,0 +1,24 @@ +<?xml version="1.0"?> +<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> + <xsd:element name="xml"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="table"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="rec" maxOccurs="unbounded"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="numField" type="xsd:int"/> + <xsd:element name="stringField" type="xsd:string"/> + </xsd:sequence> + <xsd:attribute name="id" type="xsd:NMTOKEN" use="required"/> + </xsd:complexType> + </xsd:element> + </xsd:sequence> + </xsd:complexType> + </xsd:element> + </xsd:sequence> + </xsd:complexType> + </xsd:element> +</xsd:schema> |