Learning XMLSchema
This commit is contained in:
parent
49871fef04
commit
ae296cdcf9
|
@ -1,12 +1,24 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<gem-graph-model>
|
||||
<identity>
|
||||
<name>Modèle de test</name>
|
||||
<model_name>Modèle de test</model_name>
|
||||
<name value="(Trois dimères)"/>
|
||||
<owner_id>2</owner_id>
|
||||
<date>1629830000</date>
|
||||
<version>1.0</version>
|
||||
</identity>
|
||||
<parameters>aaa</parameters>
|
||||
<parameters id="0" date="0" author="Gaston Lagaffe">
|
||||
<modelization>
|
||||
<max_thread>0</max_thread>
|
||||
<max_cycles>13</max_cycles>
|
||||
</modelization>
|
||||
<space>
|
||||
<dimension>1</dimension>
|
||||
<size>1</size>
|
||||
<site_multiplicity>2</site_multiplicity>
|
||||
<boundaries>0</boundaries>
|
||||
</space>
|
||||
</parameters>
|
||||
<objects>aaa</objects>
|
||||
<space>aaa</space>
|
||||
<savestates>aaa</savestates>
|
||||
|
@ -15,31 +27,4 @@
|
|||
<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>
|
||||
|
|
|
@ -1,21 +1,3 @@
|
|||
<?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">
|
||||
|
@ -25,14 +7,47 @@
|
|||
<xs:element name="identity">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="name" type="xs:string"/>
|
||||
<xs:element name="model_name" type="xs:string"/>
|
||||
<xs:element name="name">
|
||||
<xs:complexType>
|
||||
<xs:attribute name="value" type="xs:string"/>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<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="parameters">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="modelization">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="max_thread" type="xs:integer"/>
|
||||
<xs:element name="max_cycles" type="xs:integer"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name="space">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="dimension" type="xs:integer"/>
|
||||
<xs:element name="size" type="xs:integer"/>
|
||||
<xs:element name="site_multiplicity" type="xs:integer"/>
|
||||
<xs:element name="boundaries" type="xs:integer"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
</xs:sequence>
|
||||
<xs:attribute name="id" type="xs:string"/>
|
||||
<xs:attribute name="date" type="xs:integer"/>
|
||||
<xs:attribute name="author" type="xs:string"/>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="objects" type="xs:string"/>
|
||||
<xs:element name="space" type="xs:string"/>
|
||||
<xs:element name="savestates" type="xs:string"/>
|
||||
|
|
Loading…
Reference in New Issue