summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2015-10-19 20:55:39 -0700
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2015-10-19 20:55:39 -0700
commita3a9d53860ff3a71b700b7ed135c1722394bf2f9 (patch)
treeccdf5a64a2b979b6693fc7edfd34419422ce8271 /docs
parent7d2842e6707ca436e03ea022e04ab6879b20670f (diff)
docs: Fix CDATA example
Fixes #61.
Diffstat (limited to 'docs')
-rw-r--r--docs/manual.adoc2
-rw-r--r--docs/manual.html4
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:
+
----
-<node> <![CDATA[[text1]]> <child/> <![CDATA[[text2]]> </node>
+<node> <![CDATA[text1]]> <child/> <![CDATA[text2]]> </node>
----
+
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 <code>PUGIXML_API</code> is inconsistent between several source
<p>Character data nodes (<a id="node_cdata"></a><code>node_cdata</code>) 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:</p>
<div class="listingblock">
<div class="content">
-<pre>&lt;node&gt; &lt;![CDATA[[text1]]&gt; &lt;child/&gt; &lt;![CDATA[[text2]]&gt; &lt;/node&gt;</pre>
+<pre>&lt;node&gt; &lt;![CDATA[text1]]&gt; &lt;child/&gt; &lt;![CDATA[text2]]&gt; &lt;/node&gt;</pre>
</div>
</div>
<div class="paragraph">
@@ -5588,7 +5588,7 @@ If exceptions are disabled, then in the event of parsing failure the query is in
</div>
<div id="footer">
<div id="footer-text">
-Last updated 2015-10-19 00:10:05 PDT
+Last updated 2015-10-19 20:55:20 PDT
</div>
</div>
</body>