docs: Fix CDATA example

Fixes .
This commit is contained in:
Arseny Kapoulkine 2015-10-19 20:55:39 -07:00
parent 7d2842e670
commit a3a9d53860
2 changed files with 3 additions and 3 deletions

View file

@ -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.

View file

@ -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>