summaryrefslogtreecommitdiffstats
path: root/test/xml/encoded-char/input.xml
diff options
context:
space:
mode:
Diffstat (limited to 'test/xml/encoded-char/input.xml')
-rw-r--r--test/xml/encoded-char/input.xml11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/xml/encoded-char/input.xml b/test/xml/encoded-char/input.xml
new file mode 100644
index 0000000..289fc57
--- /dev/null
+++ b/test/xml/encoded-char/input.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Test for correctly converting encoded characters. -->
+<root>
+ <data>Tom &amp; Jerry</data>
+ <data attr="Black &amp; Whilte" attr2="&apos;quoted&apos;">This is &apos;single-quoted&apos;, and this is &quot;double-quoted&quot;.</data>
+ <data attr="&lt;&gt;&apos;&quot;&amp;">Less than (&lt;) and greater than (&gt;) are also encoded.</data>
+ <data>&lt;&gt;&apos;&quot;&amp;</data>
+ <data single-char="&amp;">&gt;</data>
+ <data>&quot;B&quot;;</data>
+ <data>&quot;;&quot;</data>
+</root>