<html>
<head>
<title>Element Valid</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">Element Valid</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">&nbsp;
</td></tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE">Text from specification</td>
</tr>
<tr>
<td colspan="2" class="description">


<p>An element is valid if there is a
declaration matching <span class="LITERAL">elementdecl</span> where the
<span class="LITERAL">Name</span> matches the element type and either the
declaration matches <span class="LITERAL">EMPTY</span> and the element has no
content, or the declaration matches children and the sequence of
child elements belongs to the language generated by the regular
expression in the content model, with optional whitespace (characters
matching the nonterminal <span class="LITERAL">S</span>) between the start-tag
and the first child element, between child elements, or between the
last child element and the end-tag. Note that a
<span class="LITERAL">CDATA</span> section containing only whitespace does not
match the nonterminal <span class="LITERAL">S</span>, and hence cannot appear
in these positions. The declaration matches <span class="LITERAL">Mixed</span>
and the content consists of character data and child elements whose
types match names in the content model. The declaration matches
<span class="LITERAL">ANY</span>, and the types of any child elements have been
declared.</p>

</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="DESCRIPTIONTITLE">Explanation</td>
</tr>
<tr>
<td colspan="2" class="description">


<p>If a document includes a DTD with element declarations, make sure the
actual elements in the document match the rules set down in the DTD.</p>

</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
</table>
</div>
</body>
</html>