1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
# test element types
--- |
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema">
<element name="foo">
<complexType>
<sequence>
<element name="no_type" minOccurs="0" />
<element name="int" type="int" minOccurs="0" />
<element name="integer" type="integer" minOccurs="0" />
<element name="name" type="NMTOKEN" minOccurs="0" />
<element name="string" type="string" minOccurs="0" />
<element name="bool" type="boolean" minOccurs="0" />
<element name="date" type="dateTime" minOccurs="0" />
</sequence>
</complexType>
</element>
</schema>
--- |
<foo>
<no_type/>
</foo>
--- >
PASS
--- |
<foo>
<int>1</int>
<integer>1</integer>
<name>foo</name>
<string>...</string>
<bool>true</bool>
<date>1977-08-02T20:02:00</date>
</foo>
--- >
PASS
--- |
<foo>
<int>what are you looking at?</int>
</foo>
--- >
FAIL /[Ii]llegal value/
--- |
<foo>
foo!!!
<int>1</int>
<integer>1</integer>
<name>foo</name>
<string>...</string>
<bool>true</bool>
<date>1977-08-02T20:02:00</date>
</foo>
--- >
FAIL
|