Interaction networks: mitab-1.0.xsd

File mitab-1.0.xsd, 1.1 KB (added by baranda, 16 years ago)

schema that defines how a PSIMTAB file is mapped to XML in the response

Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<xs:schema xmlns="http://psi.hupo.org/mi/mitab"
3           xmlns:xs="http://www.w3.org/2001/XMLSchema"
4           targetNamespace="http://psi.hupo.org/mi/mitab"
5           elementFormDefault="qualified" attributeFormDefault="unqualified">
6
7    <xs:element name="mitab" type="mitabType"/>
8
9    <xs:complexType name="mitabType">
10        <xs:sequence>
11            <xs:element type="headerType" name="header" minOccurs="0" maxOccurs="1"/>
12            <xs:element type="bodyType" name="body" minOccurs="1" maxOccurs="1"/>
13        </xs:sequence>
14        <xs:attribute type="xs:string" name="db" use="required"/>
15        <xs:attribute type="xs:string" name="version" default="1.0"/>
16    </xs:complexType>
17
18    <xs:complexType name="bodyType">
19        <xs:sequence>
20            <xs:element type="xs:string" name="col" maxOccurs="unbounded" minOccurs="15"/>
21        </xs:sequence>
22    </xs:complexType>
23
24    <xs:complexType name="headerType">
25        <xs:sequence>
26            <xs:element type="xs:string" name="col" maxOccurs="unbounded" minOccurs="15"/>
27        </xs:sequence>
28    </xs:complexType>
29
30</xs:schema>