From a3a9d53860ff3a71b700b7ed135c1722394bf2f9 Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Mon, 19 Oct 2015 20:55:39 -0700 Subject: docs: Fix CDATA example Fixes #61. --- docs/manual.adoc | 2 +- docs/manual.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/manual.adoc b/docs/manual.adoc index 6f101fb..62a3e05 100644 --- a/docs/manual.adoc +++ b/docs/manual.adoc @@ -291,7 +291,7 @@ Here `"node"` element has three children, two of which are PCDATA nodes with val * Character data nodes ([[node_cdata]]`node_cdata`) represent text in XML that is quoted in a special way. CDATA nodes do not differ from PCDATA nodes except in XML representation - the above text example looks like this with CDATA: + ---- - + ---- + CDATA nodes make it easy to include non-escaped `<`, `&` and `>` characters in plain text. CDATA value can not contain the character sequence `]]>`, since it is used to determine the end of node contents. diff --git a/docs/manual.html b/docs/manual.html index 58b2328..5fd7785 100644 --- a/docs/manual.html +++ b/docs/manual.html @@ -1055,7 +1055,7 @@ In that example PUGIXML_API is inconsistent between several source

Character data nodes (node_cdata) represent text in XML that is quoted in a special way. CDATA nodes do not differ from PCDATA nodes except in XML representation - the above text example looks like this with CDATA:

-
<node> <![CDATA[[text1]]> <child/> <![CDATA[[text2]]> </node>
+
<node> <![CDATA[text1]]> <child/> <![CDATA[text2]]> </node>
@@ -5588,7 +5588,7 @@ If exceptions are disabled, then in the event of parsing failure the query is in
-- cgit v1.2.3