learning XMLSchema
This commit is contained in:
parent
efb3bfd64c
commit
49871fef04
|
@ -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>
|
|
@ -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>
|
Loading…
Reference in New Issue