XQuilla/docs/dom3-api/classxercesc_1_1DOMCDATASection.html

151 lines
9.4 KiB
HTML
Raw Normal View History

2020-02-17 21:05:20 +00:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>XQilla DOM Level 3 API: xercesc::DOMCDATASection Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.6 -->
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li id="current"><a href="classes.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul></div>
<div class="tabs">
<ul>
<li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul></div>
<div class="nav">
<a class="el" href="namespacexercesc.html">xercesc</a>::<a class="el" href="classxercesc_1_1DOMCDATASection.html">DOMCDATASection</a></div>
<h1>xercesc::DOMCDATASection Class Reference</h1><!-- doxytag: class="xercesc::DOMCDATASection" --><!-- doxytag: inherits="xercesc::DOMText" -->CDATA sections are used to escape blocks of text containing characters that would otherwise be regarded as markup.
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="DOMCDATASection_8hpp-source.html">DOMCDATASection.hpp</a>&gt;</code>
<p>
Inheritance diagram for xercesc::DOMCDATASection:<p><center><img src="classxercesc_1_1DOMCDATASection__inherit__graph.png" border="0" usemap="#xercesc_1_1DOMCDATASection__inherit__map" alt="Inheritance graph"></center>
<map name="xercesc_1_1DOMCDATASection__inherit__map">
<area href="classxercesc_1_1DOMText.html" shape="rect" coords="40,158,170,182" alt="">
<area href="classxercesc_1_1DOMCharacterData.html" shape="rect" coords="8,84,202,108" alt="">
<area href="classxercesc_1_1DOMNode.html" shape="rect" coords="36,9,174,33" alt="">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classxercesc_1_1DOMCDATASection-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">Destructor</div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMCDATASection.html#205c3e2c7fec34acacb645c3fcfe1d0a">~DOMCDATASection</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Destructor. <a href="#205c3e2c7fec34acacb645c3fcfe1d0a"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">Hidden constructors</div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMCDATASection.html#3f7b9d233119d52b9e57a5574f6a73d5">DOMCDATASection</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMCDATASection.html#12b7f586c89bcba93ce005df507543c3">DOMCDATASection</a> (const <a class="el" href="classxercesc_1_1DOMCDATASection.html">DOMCDATASection</a> &amp;other)</td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
CDATA sections are used to escape blocks of text containing characters that would otherwise be regarded as markup.
<p>
The only delimiter that is recognized in a CDATA section is the "]]&amp;gt;" string that ends the CDATA section. CDATA sections cannot be nested. Their primary purpose is for including material such as XML fragments, without needing to escape all the delimiters. <p>
The <code>data</code> attribute of the <code><a class="el" href="classxercesc_1_1DOMText.html">DOMText</a></code> node holds the text that is contained by the CDATA section. Note that this may contain characters that need to be escaped outside of CDATA sections and that, depending on the character encoding ("charset") chosen for serialization, it may be impossible to write out some characters as part of a CDATA section. <p>
The <code><a class="el" href="classxercesc_1_1DOMCDATASection.html">DOMCDATASection</a></code> interface inherits from the <code><a class="el" href="classxercesc_1_1DOMCharacterData.html">DOMCharacterData</a></code> interface through the <code><a class="el" href="classxercesc_1_1DOMText.html">DOMText</a></code> interface. Adjacent <code><a class="el" href="classxercesc_1_1DOMCDATASection.html">DOMCDATASection</a></code> nodes are not merged by use of the <code>normalize</code> method of the <code><a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a></code> interface. Because no markup is recognized within a <code><a class="el" href="classxercesc_1_1DOMCDATASection.html">DOMCDATASection</a></code>, character numeric references cannot be used as an escape mechanism when serializing. Therefore, action needs to be taken when serializing a <code><a class="el" href="classxercesc_1_1DOMCDATASection.html">DOMCDATASection</a></code> with a character encoding where some of the contained characters cannot be represented. Failure to do so would not produce well-formed XML.One potential solution in the serialization process is to end the CDATA section before the character, output the character using a character reference or entity reference, and open a new CDATA section for any further characters in the text node. Note, however, that some code conversion libraries at the time of writing do not return an error or exception when a character is missing from the encoding, making the task of ensuring that data is not corrupted on serialization more difficult. <p>
See also the <a href="http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113">Document Object Model (DOM) Level 2 Core Specification</a>.<p>
<dl compact><dt><b>Since:</b></dt><dd>DOM Level 1 </dd></dl>
<p>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="3f7b9d233119d52b9e57a5574f6a73d5"></a><!-- doxytag: member="xercesc::DOMCDATASection::DOMCDATASection" ref="3f7b9d233119d52b9e57a5574f6a73d5" args="()" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">xercesc::DOMCDATASection::DOMCDATASection </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap><code> [inline, protected]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
</td>
</tr>
</table>
<a class="anchor" name="12b7f586c89bcba93ce005df507543c3"></a><!-- doxytag: member="xercesc::DOMCDATASection::DOMCDATASection" ref="12b7f586c89bcba93ce005df507543c3" args="(const DOMCDATASection &amp;other)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">xercesc::DOMCDATASection::DOMCDATASection </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">const <a class="el" href="classxercesc_1_1DOMCDATASection.html">DOMCDATASection</a> &amp;&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>other</em> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap><code> [inline, protected]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
</td>
</tr>
</table>
<a class="anchor" name="205c3e2c7fec34acacb645c3fcfe1d0a"></a><!-- doxytag: member="xercesc::DOMCDATASection::~DOMCDATASection" ref="205c3e2c7fec34acacb645c3fcfe1d0a" args="()" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">virtual xercesc::DOMCDATASection::~DOMCDATASection </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap><code> [inline, virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Destructor.
<p>
</td>
</tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="DOMCDATASection_8hpp-source.html">DOMCDATASection.hpp</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Tue Dec 12 00:19:02 2006 for XQilla DOM Level 3 API by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address>
</body>
</html>