forked from shippool/CargoWiseOne-Schema
-
Notifications
You must be signed in to change notification settings - Fork 0
/
NativeVessel.xsd
110 lines (110 loc) · 4.04 KB
/
NativeVessel.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<xs:schema targetNamespace="http://www.cargowise.com/Schemas/Native/2011/11" version="2.0" elementFormDefault="qualified" xmlns="http://www.cargowise.com/Schemas/Native/2011/11" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:include schemaLocation="Native.xsd" />
<xs:element name="Vessel" type="VesselData" />
<xs:complexType name="VesselData">
<xs:all>
<xs:element name="RefVessel" type="NativeVessel" />
</xs:all>
<xs:attribute name="version" type="xs:token" />
</xs:complexType>
<xs:complexType name="NativeVessel">
<xs:all>
<!-- Candidate Key: Code -->
<xs:element name="PK" minOccurs="0" type="xs:string" />
<xs:element name="Code" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="35" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="LloydsNumber" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="7" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="RadioCallSign" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="10" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="NetRegisterTon" minOccurs="0" type="xs:int" />
<xs:element name="VesselType" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="3" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CarrierCode" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="4" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="YearOfConstruction" minOccurs="0" type="xs:int" />
<xs:element name="MalaysiaVesselId" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="9" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="IsActive" minOccurs="0" type="xs:boolean" />
<xs:element name="ScreeningStatus" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="3" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="OrgHeader" minOccurs="0">
<xs:complexType>
<xs:all>
<!-- Candidate Key: Code -->
<xs:element name="Code" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="12" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="PK" minOccurs="0" type="xs:string" />
</xs:all>
<xs:attribute name="Action" type="Action" />
</xs:complexType>
</xs:element>
<xs:element name="RefCarrierConsortium" minOccurs="0">
<xs:complexType>
<xs:all>
<xs:element name="PK" minOccurs="0" type="xs:string" />
</xs:all>
<xs:attribute name="Action" type="Action" />
</xs:complexType>
</xs:element>
<xs:element name="CountryOfReg" minOccurs="0">
<xs:complexType>
<xs:all>
<!-- Candidate Key: Code -->
<xs:element name="Code" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="PK" minOccurs="0" type="xs:string" />
</xs:all>
<xs:attribute name="Action" type="Action" />
<xs:attribute name="TableName" type="xs:string" />
</xs:complexType>
</xs:element>
</xs:all>
<xs:attribute name="Action" type="Action" />
</xs:complexType>
</xs:schema>