diff options
Diffstat (limited to 'test/xml/cdata-1')
-rw-r--r-- | test/xml/cdata-1/check.txt | 18 | ||||
-rw-r--r-- | test/xml/cdata-1/input.xml | 10 |
2 files changed, 28 insertions, 0 deletions
diff --git a/test/xml/cdata-1/check.txt b/test/xml/cdata-1/check.txt new file mode 100644 index 0000000..27bb3fe --- /dev/null +++ b/test/xml/cdata-1/check.txt @@ -0,0 +1,18 @@ +/root +/root/header +/root/header"simple text" +/root/header +/root/header"[[inside double braces]]" +/root/header +/root/header"multiple" +/root/header"CDATA" +/root/header"in succession" +/root/header +/root/header"<html><body>...</body></html>" +/root/header +/root/header"!@#$%^&*()" +/root/header +/root/header"$amp;" +/root/header +/root/header"Normal character data and" +/root/header"CDATA" diff --git a/test/xml/cdata-1/input.xml b/test/xml/cdata-1/input.xml new file mode 100644 index 0000000..d5f4e5f --- /dev/null +++ b/test/xml/cdata-1/input.xml @@ -0,0 +1,10 @@ +<?xml version="1.0"?> +<root> + <header><![CDATA[simple text]]></header> + <header><![CDATA[[[inside double braces]]]]></header> + <header><![CDATA[multiple]]><![CDATA[CDATA]]><![CDATA[in succession]]></header> + <header><![CDATA[<html><body>...</body></html>]]></header><!-- make sure tags are not parsed as xml --> + <header><![CDATA[!@#$%^&*()]]></header> + <header><![CDATA[$amp;]]></header><!-- encoded characters are taken literally without decoding --> + <header>Normal character data and <![CDATA[CDATA]]></header> +</root> |