<html>
<head>
<title>Text Declarations</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div id="Description">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">Text Declarations</td>
<td valign="top" class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description">
<span class="PROGRAMLISTING"><pre><strong class="userinput">&lt;?xml</strong>[ <strong class="userinput">version="</strong><var class="replaceable">version_number</var><strong class="userinput">"</strong>] <strong class="userinput">encoding="</strong><var class="replaceable">encoding-name</var><strong class="userinput">"?&gt;</strong></pre></span>
<p>
Files that contain
external parsed entities must
include a text declaration if the entity file uses a character
encoding other than UTF-8 or UTF-16, or if its contents conform to
the XML 1.1 Recommendation. This declaration would be followed by the
replacement text of the external parsed entity. Entities with no text
declaration are assumed to conform to the XML 1.0 Recommendation.</p>

<tip id="xmlnut3-CHP-21-NOTE-138" role="ora">
<p>External parsed entities may contain only document content or a
completely well-formed subset of the DTD. This restriction is
significant because it indicates that external parameter entities
cannot be used to play token-pasting games by splitting XML syntax
constructs into multiple files, then expecting the parser to
reassemble them.</p>
</tip>
</td></tr>
</table>
</div>
</body>
</html>