File: table.xsd

package info (click to toggle)
xmlstarlet 1.0.1-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 2,164 kB
  • ctags: 389
  • sloc: ansic: 4,578; sh: 3,109; xml: 1,821; makefile: 92
file content (24 lines) | stat: -rw-r--r-- 839 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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>