summaryrefslogtreecommitdiffstats
path: root/test/xml/single-quote
diff options
context:
space:
mode:
Diffstat (limited to 'test/xml/single-quote')
-rw-r--r--test/xml/single-quote/check.txt11
-rw-r--r--test/xml/single-quote/input.xml9
2 files changed, 20 insertions, 0 deletions
diff --git a/test/xml/single-quote/check.txt b/test/xml/single-quote/check.txt
new file mode 100644
index 0000000..b07f0ac
--- /dev/null
+++ b/test/xml/single-quote/check.txt
@@ -0,0 +1,11 @@
+/root
+/root/child
+/root/child@attr1="value1"
+/root/child@attr2="value2"
+/root/child
+/root/child@attr3="\"quoted\""
+/root/child@attr4="before\"after"
+/root/child
+/root/child@attr5=""
+/root/child
+/root/child@attr6="double-quoted"
diff --git a/test/xml/single-quote/input.xml b/test/xml/single-quote/input.xml
new file mode 100644
index 0000000..1cd65db
--- /dev/null
+++ b/test/xml/single-quote/input.xml
@@ -0,0 +1,9 @@
+<?xml version='1.0' encoding='utf-8'?>
+<!-- this is a comment -->
+<root>
+ <child attr2='value2' attr1='value1'/>
+ <child attr3='"quoted"' attr4='before"after'/>
+ <child attr5=''/> <!-- empty attribute value -->
+ <child attr6="double-quoted"/>
+</root>
+