[New] Creating a XML Schema for Strolch model as XML
This commit is contained in:
parent
977674b9c5
commit
762f36b184
|
@ -4,11 +4,13 @@
|
||||||
<xs:element name="StrolchModel" type="StrolchModelType" />
|
<xs:element name="StrolchModel" type="StrolchModelType" />
|
||||||
|
|
||||||
<xs:complexType name="StrolchModelType">
|
<xs:complexType name="StrolchModelType">
|
||||||
<xs:sequence>
|
<xs:sequence maxOccurs="unbounded" minOccurs="0">
|
||||||
|
<xs:choice>
|
||||||
<xs:element type="IncludeFileType" name="IncludeFile" maxOccurs="unbounded" minOccurs="0" />
|
<xs:element type="IncludeFileType" name="IncludeFile" maxOccurs="unbounded" minOccurs="0" />
|
||||||
<xs:element type="OrderType" name="Order" maxOccurs="unbounded" minOccurs="0" />
|
<xs:element type="OrderType" name="Order" maxOccurs="unbounded" minOccurs="0" />
|
||||||
<xs:element type="ResourceType" name="Resource" maxOccurs="unbounded" minOccurs="0" />
|
<xs:element type="ResourceType" name="Resource" maxOccurs="unbounded" minOccurs="0" />
|
||||||
<xs:element type="ActivityType" name="Activity" maxOccurs="unbounded" minOccurs="0" />
|
<xs:element type="ActivityType" name="Activity" maxOccurs="unbounded" minOccurs="0" />
|
||||||
|
</xs:choice>
|
||||||
</xs:sequence>
|
</xs:sequence>
|
||||||
</xs:complexType>
|
</xs:complexType>
|
||||||
|
|
||||||
|
@ -58,8 +60,12 @@
|
||||||
<xs:element type="VersionType" name="Version" maxOccurs="1" minOccurs="0" />
|
<xs:element type="VersionType" name="Version" maxOccurs="1" minOccurs="0" />
|
||||||
<xs:element type="ParameterBagType" name="ParameterBag" maxOccurs="unbounded" minOccurs="0" />
|
<xs:element type="ParameterBagType" name="ParameterBag" maxOccurs="unbounded" minOccurs="0" />
|
||||||
<xs:element type="PoliciesType" name="Policies" maxOccurs="1" minOccurs="0" />
|
<xs:element type="PoliciesType" name="Policies" maxOccurs="1" minOccurs="0" />
|
||||||
|
<xs:sequence maxOccurs="unbounded" minOccurs="0">
|
||||||
|
<xs:choice>
|
||||||
<xs:element type="ActionType" name="Action" maxOccurs="unbounded" minOccurs="0" />
|
<xs:element type="ActionType" name="Action" maxOccurs="unbounded" minOccurs="0" />
|
||||||
<xs:element type="ActivityType" name="Activity" maxOccurs="unbounded" minOccurs="0" />
|
<xs:element type="ActivityType" name="Activity" maxOccurs="unbounded" minOccurs="0" />
|
||||||
|
</xs:choice>
|
||||||
|
</xs:sequence>
|
||||||
</xs:sequence>
|
</xs:sequence>
|
||||||
<xs:attribute type="xs:string" name="Id" />
|
<xs:attribute type="xs:string" name="Id" />
|
||||||
<xs:attribute type="xs:string" name="Name" />
|
<xs:attribute type="xs:string" name="Name" />
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<StrolchModel xsi:noNamespaceSchemaLocation="StrolchModel.xsd">
|
<StrolchModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="StrolchModel.xsd">
|
||||||
|
|
||||||
<Order Id="@test1" Name="Test Order" Type="Order">
|
<Order Id="@test1" Name="Test Order" Type="Order">
|
||||||
<Version Version="0" CreatedBy="test" CreatedAt="2012-11-30T18:12:05.628+01:00" Deleted="false" />
|
<Version Version="0" CreatedBy="test" CreatedAt="2012-11-30T18:12:05.628+01:00" Deleted="false" />
|
||||||
|
|
Loading…
Reference in New Issue