-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5c5e471
commit 8f98887
Showing
82 changed files
with
1,812 additions
and
2,400 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
XmlStructWriter.jl/test/test_data/generic_cases/basic_types.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<TestComplexAndSimple:document xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="TestComplexAndSimple basic_types.xsd" xmlns:TestComplexAndSimple="TestComplexAndSimple"> | ||
<TestElement1> | ||
<Element_string>aaaa</Element_string> | ||
<Element_double>100.22</Element_double> | ||
<Element_boolean>true</Element_boolean> | ||
<Element_decimal>5.55</Element_decimal> | ||
<Element_dateTime>2022-05-10T10:22:49.152+01:00</Element_dateTime> | ||
<Element_integer>-778</Element_integer> | ||
<Element_nonNegativeInteger>0</Element_nonNegativeInteger> | ||
<Element_positiveInteger>663</Element_positiveInteger> | ||
</TestElement1> | ||
|
||
<TestElement2>99A9</TestElement2> | ||
|
||
<TestElement3> | ||
<Element_string>bbbb</Element_string> | ||
<Element_double>464.558</Element_double> | ||
<Element_dateTime>2002-10-10T10:22:49.152-02:00</Element_dateTime> | ||
</TestElement3> | ||
</TestComplexAndSimple:document> |
51 changes: 51 additions & 0 deletions
51
XmlStructWriter.jl/test/test_data/generic_cases/basic_types.xsd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?xml version="1.0"?> | ||
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:TestComplexAndSimple="TestComplexAndSimple" targetNamespace="TestComplexAndSimple"> | ||
|
||
<element name="document" type="TestComplexAndSimple:documentType"/> | ||
|
||
<complexType name="TestComplexType1"> | ||
<annotation> | ||
<documentation>An example of a complex xsd type.</documentation> | ||
</annotation> | ||
<sequence> | ||
<element name="Element_string" type="string"/> | ||
<element name="Element_double" type="double"/> | ||
<element name="Element_boolean" type="boolean"/> | ||
<element name="Element_decimal" type="decimal"/> | ||
<element name="Element_dateTime" type="dateTime"/> | ||
<element name="Element_integer" type="integer"/> | ||
<element name="Element_nonNegativeInteger" type="nonNegativeInteger"/> | ||
<element name="Element_positiveInteger" type="positiveInteger"/> | ||
</sequence> | ||
</complexType> | ||
|
||
<complexType name="TestComplexType6"> | ||
<annotation> | ||
<documentation>An example of a complex xsd type.</documentation> | ||
</annotation> | ||
<sequence> | ||
<element name="Element_string" type="string"/> | ||
<element name="Element_double" type="double"/> | ||
<element name="Element_dateTime" type="dateTime"/> | ||
</sequence> | ||
</complexType> | ||
|
||
<simpleType name="TestSimpleType1"> | ||
<annotation> | ||
<documentation>An example of a simple xsd type.</documentation> | ||
</annotation> | ||
<restriction base="string"> | ||
<maxLength value="4"/> | ||
<pattern value="([0-9A-Z]{4})?"/> | ||
</restriction> | ||
</simpleType> | ||
|
||
<complexType name="documentType"> | ||
<sequence> | ||
<element name="TestElement1" type="TestComplexAndSimple:TestComplexType1"/> | ||
<element name="TestElement2" type="TestComplexAndSimple:TestSimpleType1"/> | ||
<element name="TestElement3" type="TestComplexAndSimple:TestComplexType6"/> | ||
</sequence> | ||
</complexType> | ||
|
||
</schema> |
44 changes: 0 additions & 44 deletions
44
XmlStructWriter.jl/test/test_data/generic_cases/basic_types/basic_types.jl
This file was deleted.
Oops, something went wrong.
69 changes: 0 additions & 69 deletions
69
XmlStructWriter.jl/test/test_data/generic_cases/basic_types/basic_types_struct.jl
This file was deleted.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
XmlStructWriter.jl/test/test_data/generic_cases/basic_types_expected.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<TestComplexAndSimple:document xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="TestComplexAndSimple basic_types.xsd" xmlns:TestComplexAndSimple="TestComplexAndSimple"> | ||
<TestElement1> | ||
<Element_string>aaaa</Element_string> | ||
<Element_double>100.22</Element_double> | ||
<Element_boolean>true</Element_boolean> | ||
<Element_decimal>5.55</Element_decimal> | ||
<Element_dateTime>2022-05-10T10:22:49.152+01:00</Element_dateTime> | ||
<Element_integer>-778</Element_integer> | ||
<Element_nonNegativeInteger>0</Element_nonNegativeInteger> | ||
<Element_positiveInteger>663</Element_positiveInteger> | ||
</TestElement1> | ||
|
||
<TestElement2>99A9</TestElement2> | ||
|
||
<TestElement3> | ||
<Element_string>bbbb</Element_string> | ||
<Element_double>464.558</Element_double> | ||
<Element_dateTime>2002-10-10T10:22:49.152-02:00</Element_dateTime> | ||
</TestElement3> | ||
</TestComplexAndSimple:document> |
89 changes: 89 additions & 0 deletions
89
XmlStructWriter.jl/test/test_data/generic_cases/choice_element.xsd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
<?xml version="1.0"?> | ||
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:TestChoice="TestChoice" targetNamespace="TestChoice"> | ||
|
||
<element name="document" type="TestChoice:documentType"/> | ||
|
||
<complexType name="TestComplexType1"> | ||
<annotation> | ||
<documentation>Example of a complex XSD type that uses a choice.</documentation> | ||
</annotation> | ||
<sequence> | ||
<element name="element1" type="string"/> | ||
<choice> | ||
<element name="choice1" type="string"/> | ||
<element name="choice2" type="decimal"/> | ||
</choice> | ||
<element name="element2" type="string" default="default"/> | ||
</sequence> | ||
</complexType> | ||
|
||
<complexType name="TestComplexType2"> | ||
<annotation> | ||
<documentation>Example of a complex XSD type that uses a choice.</documentation> | ||
</annotation> | ||
<sequence> | ||
<choice> | ||
<element name="choice1" type="string"/> | ||
<element name="choice2" type="decimal"/> | ||
<element name="choice3"> | ||
<simpleType> | ||
<annotation> | ||
<documentation>An example of a simple xsd type.</documentation> | ||
</annotation> | ||
<restriction base="string"> | ||
<maxLength value="4"/> | ||
<pattern value="([0-9A-Z]{4})?"/> | ||
</restriction> | ||
</simpleType> | ||
</element> | ||
</choice> | ||
</sequence> | ||
</complexType> | ||
|
||
<!-- <complexType name="TestComplexType3"> | ||
<annotation> | ||
<documentation>Example of a complex XSD type that uses a choice with a group.</documentation> | ||
</annotation> | ||
<sequence> | ||
<choice> | ||
<element name="choice1" type="string"/> | ||
<element name="choice2" type="decimal"/> | ||
<group ref="TestChoice:TestGroup"></group> | ||
</choice> | ||
</sequence> | ||
</complexType> | ||
<group name="TestGroup"> | ||
<sequence> | ||
<element name="groupchoice1" type="string"/> | ||
<element name="groupchoice2" type="decimal"/> | ||
</sequence> | ||
</group> --> | ||
|
||
<complexType name="TestComplexType5"> | ||
<annotation> | ||
<documentation>Example of a complex XSD type that uses a choice.</documentation> | ||
</annotation> | ||
<sequence> | ||
<choice> | ||
<element name="choice1" type="string"/> | ||
<element name="choice2" type="decimal"/> | ||
</choice> | ||
<choice> | ||
<element name="choice3" type="string"/> | ||
<element name="choice4" type="decimal"/> | ||
</choice> | ||
</sequence> | ||
</complexType> | ||
|
||
<complexType name="documentType"> | ||
<sequence> | ||
<element name="TestElement1" type="TestChoice:TestComplexType1"/> | ||
<element name="TestElement2" type="TestChoice:TestComplexType2"/> | ||
<!-- <element name="TestElement3" type="TestChoice:TestComplexType3"/> --> | ||
<!-- <element name="TestElement4" type="TestChoice:TestComplexType4"/> --> | ||
<element name="TestElement5" type="TestChoice:TestComplexType5"/> | ||
</sequence> | ||
</complexType> | ||
|
||
</schema> |
42 changes: 0 additions & 42 deletions
42
XmlStructWriter.jl/test/test_data/generic_cases/choice_element/choice_element.jl
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.