diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 05:48:59 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 05:48:59 +0000 |
commit | c484829272cd13a738e35412498e12f2c9a194ac (patch) | |
tree | a1f5ec09629ee895bd3963fa8820b45f2f4c574b /test/xml/encoded-char | |
parent | Initial commit. (diff) | |
download | liborcus-upstream/0.19.2.tar.xz liborcus-upstream/0.19.2.zip |
Adding upstream version 0.19.2.upstream/0.19.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'test/xml/encoded-char')
-rw-r--r-- | test/xml/encoded-char/check.txt | 19 | ||||
-rw-r--r-- | test/xml/encoded-char/input.xml | 11 |
2 files changed, 30 insertions, 0 deletions
diff --git a/test/xml/encoded-char/check.txt b/test/xml/encoded-char/check.txt new file mode 100644 index 0000000..5aba73d --- /dev/null +++ b/test/xml/encoded-char/check.txt @@ -0,0 +1,19 @@ +/root +/root/data +/root/data"Tom & Jerry" +/root/data +/root/data@attr="Black & Whilte" +/root/data@attr2="'quoted'" +/root/data"This is 'single-quoted', and this is \"double-quoted\"." +/root/data +/root/data@attr="<>'\"&" +/root/data"Less than (<) and greater than (>) are also encoded." +/root/data +/root/data"<>'\"&" +/root/data +/root/data@single-char="&" +/root/data">" +/root/data +/root/data"\"B\";" +/root/data +/root/data"\";\"" 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 & Jerry</data> + <data attr="Black & Whilte" attr2="'quoted'">This is 'single-quoted', and this is "double-quoted".</data> + <data attr="<>'"&">Less than (<) and greater than (>) are also encoded.</data> + <data><>'"&</data> + <data single-char="&">></data> + <data>"B";</data> + <data>";"</data> +</root> |