learning XMLSchema

This commit is contained in:
Jean Sirmai 2021-09-18 16:44:10 +02:00
parent efb3bfd64c
commit 49871fef04
Signed by untrusted user who does not match committer: jean
GPG Key ID: FB3115C340E057E3
2 changed files with 90 additions and 0 deletions

View File

@ -0,0 +1,45 @@
<?xml version="1.0" encoding="UTF-8"?>
<gem-graph-model>
<identity>
<name>Modèle de test</name>
<owner_id>2</owner_id>
<date>1629830000</date>
<version>1.0</version>
</identity>
<parameters>aaa</parameters>
<objects>aaa</objects>
<space>aaa</space>
<savestates>aaa</savestates>
<transitions>aaa</transitions>
<ref>aaa</ref>
<quote>aaa</quote>
</gem-graph-model>
----------------------------------------------------
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="gem-graph-model">
<xs:complexType>
<xs:sequence>
<xs:element name="identity">
<xs:complexType>
<xs:sequence>
<xs:element name="name" type="xs:string"/>
<xs:element name="owner_id" type="xs:integer"/>
<xs:element name="date" type="xs:integer"/>
<xs:element name="version" type="xs:float"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="parameters" type="xs:string"/>
<xs:element name="objects" type="xs:string"/>
<xs:element name="space" type="xs:string"/>
<xs:element name="savestates" type="xs:string"/>
<xs:element name="transitions" type="xs:string"/>
<xs:element name="ref" type="xs:string"/>
<xs:element name="quote" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>

View File

@ -0,0 +1,45 @@
<?xml version="1.0" encoding="UTF-8"?>
<gem-graph-model>
<identity>
<name>Modèle de test</name>
<owner_id>2</owner_id>
<date>1629830000</date>
<version>1.0</version>
</identity>
<parameters>aaa</parameters>
<objects>aaa</objects>
<space>aaa</space>
<savestates>aaa</savestates>
<transitions>aaa</transitions>
<ref>aaa</ref>
<quote>aaa</quote>
</gem-graph-model>
----------------------------------------------------
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="gem-graph-model">
<xs:complexType>
<xs:sequence>
<xs:element name="identity">
<xs:complexType>
<xs:sequence>
<xs:element name="name" type="xs:string"/>
<xs:element name="owner_id" type="xs:integer"/>
<xs:element name="date" type="xs:integer"/>
<xs:element name="version" type="xs:float"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="parameters" type="xs:string"/>
<xs:element name="objects" type="xs:string"/>
<xs:element name="space" type="xs:string"/>
<xs:element name="savestates" type="xs:string"/>
<xs:element name="transitions" type="xs:string"/>
<xs:element name="ref" type="xs:string"/>
<xs:element name="quote" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>