Erforderliches Format für XSD-Dateien
XSD-Dateien validieren die Telematikdaten. XSD-Dateien müssen einem bestimmten Format entsprechen. Sie können das Format erweitern.
Beispiel für ein XML-Format
Im folgenden Beispiel wird das
XSD-Basisformat gezeigt.
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="ROOT">
<xs:complexType>
<xs:sequence>
<xs:element name="RECORD" maxOccurs="unbounded">
<xs:complexType>
<xs:all>
<xs:element name="ASSETNUM">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="12"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CODEDATA">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="TELECODE">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="12"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="READINGDATE" type="xs:dateTime"/>
<!-- Standard date time format: YYYY-MM-DDThh:mm:ss -->
<!-- * YYYY indicates the year -->
<!-- * MM indicates the month -->
<!-- * DD indicates the day -->
<!-- * T indicates the start of the required time section -->
<!-- * hh indicates the hour -->
<!-- * mm indicates the minute -->
<!-- * ss indicates the second -->
</xs:all>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>