File: mixed-content.xsd

package info (click to toggle)
python-xmlschema 4.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 5,208 kB
  • sloc: python: 39,174; xml: 1,282; makefile: 36
file content (15 lines) | stat: -rw-r--r-- 727 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns="ns" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="ns" >
    <xs:element name="data">
        <xs:complexType mixed="true">
            <xs:choice maxOccurs="unbounded">
                <xs:element name="decimal_value" type="xs:decimal"/>
                <xs:element name="string_value" type="xs:string"/>
                <xs:element name="boolean_value" type="xs:boolean"/>
                <xs:element name="date_and_time" type="xs:dateTime"/>
                <xs:element name="interval" type="xs:duration"/>
                <xs:element name="hexbin" type="xs:hexBinary"/>
            </xs:choice>
        </xs:complexType>
    </xs:element>
</xs:schema>