summaryrefslogtreecommitdiffstats
path: root/libxml2/test/schemas/hexbinary_1.xml
diff options
context:
space:
mode:
Diffstat (limited to 'libxml2/test/schemas/hexbinary_1.xml')
-rw-r--r--libxml2/test/schemas/hexbinary_1.xml15
1 files changed, 15 insertions, 0 deletions
diff --git a/libxml2/test/schemas/hexbinary_1.xml b/libxml2/test/schemas/hexbinary_1.xml
new file mode 100644
index 0000000..0f34854
--- /dev/null
+++ b/libxml2/test/schemas/hexbinary_1.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0"?>
+<!-- all (except 2 first) should fail to validate -->
+<xsd_hexBinary>
+ <hex></hex>
+ <hex/>
+ <hex>0</hex>
+ <hex>0123456789ABCDEFGH</hex>
+ <hex>+abcdef0123456789</hex>
+ <hex>-0123456789abcdef</hex>
+ <!-- minLength and maxLength -->
+ <hex2>112233445566778899</hex2>
+ <!-- length -->
+ <hex3>ab</hex3>
+ <hex3>00fedc</hex3>
+</xsd_hexBinary>