diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2009-09-17 07:15:29 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2009-09-17 07:15:29 +0200 |
commit | f0510d2f90467de8e8f260b47d79a9baaf9bef17 (patch) | |
tree | 0b9929946f06a9cbe9b9e8f2a7600dae4e048f79 /examples/cxx/tree/streaming/records.xsd |
Start tracking XSD with git
Diffstat (limited to 'examples/cxx/tree/streaming/records.xsd')
-rw-r--r-- | examples/cxx/tree/streaming/records.xsd | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/examples/cxx/tree/streaming/records.xsd b/examples/cxx/tree/streaming/records.xsd new file mode 100644 index 0000000..2b357e6 --- /dev/null +++ b/examples/cxx/tree/streaming/records.xsd @@ -0,0 +1,37 @@ +<?xml version="1.0"?> + +<!-- + +file : examples/cxx/tree/streaming/records.xsd +author : Boris Kolpackov <boris@codesynthesis.com> +copyright : not copyrighted - public domain + +--> +<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> + + <xsd:complexType name="record"> + <xsd:sequence> + <xsd:element name="data" type="xsd:string"/> + </xsd:sequence> + </xsd:complexType> + + <!-- + + We need this global element so that we get serialization functions + for record. Note that global elements are always qualified. As a + result, if you are using XML namespaces (this example is not), you + will need to make sure the record element inside the records type + is also qualified. + + --> + <xsd:element name="record" type="record"/> + + <xsd:complexType name="records"> + <xsd:sequence> + <xsd:element name="record" type="record" maxOccurs="unbounded"/> + </xsd:sequence> + </xsd:complexType> + + <xsd:element name="records" type="records"/> + +</xsd:schema> |