<h3><aname="XML_CTXT_FINISH_DTD_0"id="XML_CTXT_FINISH_DTD_0"></a>Macro: XML_CTXT_FINISH_DTD_0</h3><pre>#define XML_CTXT_FINISH_DTD_0</pre><p>Special value for finishDtd field when embedded in an <ahref="libxml-tree.html#xmlParserCtxt">xmlParserCtxt</a></p>
<h3><aname="XML_CTXT_FINISH_DTD_1"id="XML_CTXT_FINISH_DTD_1"></a>Macro: XML_CTXT_FINISH_DTD_1</h3><pre>#define XML_CTXT_FINISH_DTD_1</pre><p>Special value for finishDtd field when embedded in an <ahref="libxml-tree.html#xmlParserCtxt">xmlParserCtxt</a></p>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>ctxt</tt></i>:</span></td><td>the validation context</td></tr><tr><td><spanclass="term"><i><tt>dtd</tt></i>:</span></td><td>pointer to the DTD</td></tr><tr><td><spanclass="term"><i><tt>name</tt></i>:</span></td><td>the entity name</td></tr><tr><td><spanclass="term"><i><tt>type</tt></i>:</span></td><td>the element type</td></tr><tr><td><spanclass="term"><i><tt>content</tt></i>:</span></td><td>the element content tree or NULL</td></tr><tr><td><spanclass="term"><i><tt>Returns</tt></i>:</span></td><td>NULL if not, otherwise the entity</td></tr></tbody></table></div><h3><aname="xmlAddID"id="xmlAddID"></a>Function: xmlAddID</h3><preclass="programlisting"><ahref="libxml-tree.html#xmlIDPtr">xmlIDPtr</a> xmlAddID (<ahref="libxml-valid.html#xmlValidCtxtPtr">xmlValidCtxtPtr</a> ctxt, <br/><ahref="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> doc, <br/> const <ahref="libxml-xmlstring.html#xmlChar">xmlChar</a> * value, <br/><ahref="libxml-tree.html#xmlAttrPtr">xmlAttrPtr</a> attr)<br/>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>ctxt</tt></i>:</span></td><td>the validation context</td></tr><tr><td><spanclass="term"><i><tt>dtd</tt></i>:</span></td><td>pointer to the DTD</td></tr><tr><td><spanclass="term"><i><tt>name</tt></i>:</span></td><td>the entity name</td></tr><tr><td><spanclass="term"><i><tt>PublicID</tt></i>:</span></td><td>the public identifier or NULL</td></tr><tr><td><spanclass="term"><i><tt>SystemID</tt></i>:</span></td><td>the system identifier or NULL</td></tr><tr><td><spanclass="term"><i><tt>Returns</tt></i>:</span></td><td>NULL if not, otherwise the entity</td></tr></tbody></table></div><h3><aname="xmlAddRef"id="xmlAddRef"></a>Function: xmlAddRef</h3><preclass="programlisting"><ahref="libxml-tree.html#xmlRefPtr">xmlRefPtr</a> xmlAddRef (<ahref="libxml-valid.html#xmlValidCtxtPtr">xmlValidCtxtPtr</a> ctxt, <br/><ahref="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> doc, <br/> const <ahref="libxml-xmlstring.html#xmlChar">xmlChar</a> * value, <br/><ahref="libxml-tree.html#xmlAttrPtr">xmlAttrPtr</a> attr)<br/>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>ctxt</tt></i>:</span></td><td>the validation context</td></tr><tr><td><spanclass="term"><i><tt>doc</tt></i>:</span></td><td>pointer to the document</td></tr><tr><td><spanclass="term"><i><tt>value</tt></i>:</span></td><td>the value name</td></tr><tr><td><spanclass="term"><i><tt>attr</tt></i>:</span></td><td>the <ahref="libxml-SAX.html#attribute">attribute</a> holding the Ref</td></tr><tr><td><spanclass="term"><i><tt>Returns</tt></i>:</span></td><td>NULL if not, otherwise the new <ahref="libxml-tree.html#xmlRefPtr">xmlRefPtr</a></td></tr></tbody></table></div><h3><aname="xmlCopyAttributeTable"id="xmlCopyAttributeTable"></a>Function: xmlCopyAttributeTable</h3><preclass="programlisting"><ahref="libxml-valid.html#xmlAttributeTablePtr">xmlAttributeTablePtr</a> xmlCopyAttributeTable (<ahref="libxml-valid.html#xmlAttributeTablePtr">xmlAttributeTablePtr</a> table)<br/>
</pre><p>Build a copy of an <ahref="libxml-SAX.html#attribute">attribute</a> table.</p>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>table</tt></i>:</span></td><td>An <ahref="libxml-SAX.html#attribute">attribute</a> table</td></tr><tr><td><spanclass="term"><i><tt>Returns</tt></i>:</span></td><td>the new <ahref="libxml-valid.html#xmlAttributeTablePtr">xmlAttributeTablePtr</a> or NULL in case of error.</td></tr></tbody></table></div><h3><aname="xmlCopyDocElementContent"id="xmlCopyDocElementContent"></a>Function: xmlCopyDocElementContent</h3><preclass="programlisting"><ahref="libxml-tree.html#xmlElementContentPtr">xmlElementContentPtr</a> xmlCopyDocElementContent (<ahref="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> doc, <br/><ahref="libxml-tree.html#xmlElementContentPtr">xmlElementContentPtr</a> cur)<br/>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>doc</tt></i>:</span></td><td>the document owning the element declaration</td></tr><tr><td><spanclass="term"><i><tt>cur</tt></i>:</span></td><td>An element content pointer.</td></tr><tr><td><spanclass="term"><i><tt>Returns</tt></i>:</span></td><td>the new <ahref="libxml-tree.html#xmlElementContentPtr">xmlElementContentPtr</a> or NULL in case of error.</td></tr></tbody></table></div><h3><aname="xmlCopyElementContent"id="xmlCopyElementContent"></a>Function: xmlCopyElementContent</h3><preclass="programlisting"><ahref="libxml-tree.html#xmlElementContentPtr">xmlElementContentPtr</a> xmlCopyElementContent (<ahref="libxml-tree.html#xmlElementContentPtr">xmlElementContentPtr</a> cur)<br/>
</pre><p>Build a copy of an element content description. Deprecated, use <ahref="libxml-valid.html#xmlCopyDocElementContent">xmlCopyDocElementContent</a> instead</p>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>cur</tt></i>:</span></td><td>An element content pointer.</td></tr><tr><td><spanclass="term"><i><tt>Returns</tt></i>:</span></td><td>the new <ahref="libxml-tree.html#xmlElementContentPtr">xmlElementContentPtr</a> or NULL in case of error.</td></tr></tbody></table></div><h3><aname="xmlCopyElementTable"id="xmlCopyElementTable"></a>Function: xmlCopyElementTable</h3><preclass="programlisting"><ahref="libxml-valid.html#xmlElementTablePtr">xmlElementTablePtr</a> xmlCopyElementTable (<ahref="libxml-valid.html#xmlElementTablePtr">xmlElementTablePtr</a> table)<br/>
</pre><p>Build a copy of an element table.</p>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>table</tt></i>:</span></td><td>An element table</td></tr><tr><td><spanclass="term"><i><tt>Returns</tt></i>:</span></td><td>the new <ahref="libxml-valid.html#xmlElementTablePtr">xmlElementTablePtr</a> or NULL in case of error.</td></tr></tbody></table></div><h3><aname="xmlCopyEnumeration"id="xmlCopyEnumeration"></a>Function: xmlCopyEnumeration</h3><preclass="programlisting"><ahref="libxml-tree.html#xmlEnumerationPtr">xmlEnumerationPtr</a> xmlCopyEnumeration (<ahref="libxml-tree.html#xmlEnumerationPtr">xmlEnumerationPtr</a> cur)<br/>
</pre><p>Copy an enumeration <ahref="libxml-SAX.html#attribute">attribute</a> node (recursive).</p>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>cur</tt></i>:</span></td><td>the tree to copy.</td></tr><tr><td><spanclass="term"><i><tt>Returns</tt></i>:</span></td><td>the <ahref="libxml-tree.html#xmlEnumerationPtr">xmlEnumerationPtr</a> just created or NULL in case of error.</td></tr></tbody></table></div><h3><aname="xmlCopyNotationTable"id="xmlCopyNotationTable"></a>Function: xmlCopyNotationTable</h3><preclass="programlisting"><ahref="libxml-valid.html#xmlNotationTablePtr">xmlNotationTablePtr</a> xmlCopyNotationTable (<ahref="libxml-valid.html#xmlNotationTablePtr">xmlNotationTablePtr</a> table)<br/>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>table</tt></i>:</span></td><td>A notation table</td></tr><tr><td><spanclass="term"><i><tt>Returns</tt></i>:</span></td><td>the new <ahref="libxml-valid.html#xmlNotationTablePtr">xmlNotationTablePtr</a> or NULL in case of error.</td></tr></tbody></table></div><h3><aname="xmlCreateEnumeration"id="xmlCreateEnumeration"></a>Function: xmlCreateEnumeration</h3><preclass="programlisting"><ahref="libxml-tree.html#xmlEnumerationPtr">xmlEnumerationPtr</a> xmlCreateEnumeration (const <ahref="libxml-xmlstring.html#xmlChar">xmlChar</a> * name)<br/>
</pre><p>create and initialize an enumeration <ahref="libxml-SAX.html#attribute">attribute</a> node.</p>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>name</tt></i>:</span></td><td>the enumeration name or NULL</td></tr><tr><td><spanclass="term"><i><tt>Returns</tt></i>:</span></td><td>the <ahref="libxml-tree.html#xmlEnumerationPtr">xmlEnumerationPtr</a> just created or NULL in case of error.</td></tr></tbody></table></div><h3><aname="xmlDumpAttributeDecl"id="xmlDumpAttributeDecl"></a>Function: xmlDumpAttributeDecl</h3><preclass="programlisting">void xmlDumpAttributeDecl (<ahref="libxml-tree.html#xmlBufferPtr">xmlBufferPtr</a> buf, <br/><ahref="libxml-tree.html#xmlAttributePtr">xmlAttributePtr</a> attr)<br/>
</pre><p>Free an element content structure. The whole subtree is removed.</p>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>doc</tt></i>:</span></td><td>the document owning the element declaration</td></tr><tr><td><spanclass="term"><i><tt>cur</tt></i>:</span></td><td>the element content tree to free</td></tr></tbody></table></div><h3><aname="xmlFreeElementContent"id="xmlFreeElementContent"></a>Function: xmlFreeElementContent</h3><preclass="programlisting">void xmlFreeElementContent (<ahref="libxml-tree.html#xmlElementContentPtr">xmlElementContentPtr</a> cur)<br/>
</pre><p>Free an element content structure. The whole subtree is removed. Deprecated, use <ahref="libxml-valid.html#xmlFreeDocElementContent">xmlFreeDocElementContent</a> instead</p>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>cur</tt></i>:</span></td><td>the element content tree to free</td></tr></tbody></table></div><h3><aname="xmlFreeElementTable"id="xmlFreeElementTable"></a>Function: xmlFreeElementTable</h3><preclass="programlisting">void xmlFreeElementTable (<ahref="libxml-valid.html#xmlElementTablePtr">xmlElementTablePtr</a> table)<br/>
</pre><p>Deallocate the memory used by an element hash table.</p>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>table</tt></i>:</span></td><td>An element table</td></tr></tbody></table></div><h3><aname="xmlFreeEnumeration"id="xmlFreeEnumeration"></a>Function: xmlFreeEnumeration</h3><preclass="programlisting">void xmlFreeEnumeration (<ahref="libxml-tree.html#xmlEnumerationPtr">xmlEnumerationPtr</a> cur)<br/>
</pre><p>free an enumeration <ahref="libxml-SAX.html#attribute">attribute</a> node (recursive).</p>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>cur</tt></i>:</span></td><td>the tree to free.</td></tr></tbody></table></div><h3><aname="xmlFreeIDTable"id="xmlFreeIDTable"></a>Function: xmlFreeIDTable</h3><preclass="programlisting">void xmlFreeIDTable (<ahref="libxml-valid.html#xmlIDTablePtr">xmlIDTablePtr</a> table)<br/>
</pre><p>Deallocate the memory used by an ID hash table.</p>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>table</tt></i>:</span></td><td>An id table</td></tr></tbody></table></div><h3><aname="xmlFreeNotationTable"id="xmlFreeNotationTable"></a>Function: xmlFreeNotationTable</h3><preclass="programlisting">void xmlFreeNotationTable (<ahref="libxml-valid.html#xmlNotationTablePtr">xmlNotationTablePtr</a> table)<br/>
</pre><p>Deallocate the memory used by an entities hash table.</p>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>dtd</tt></i>:</span></td><td>a pointer to the DtD to search</td></tr><tr><td><spanclass="term"><i><tt>elem</tt></i>:</span></td><td>the element name</td></tr><tr><td><spanclass="term"><i><tt>name</tt></i>:</span></td><td>the <ahref="libxml-SAX.html#attribute">attribute</a> name</td></tr><tr><td><spanclass="term"><i><tt>Returns</tt></i>:</span></td><td>the <ahref="libxml-tree.html#xmlAttributePtr">xmlAttributePtr</a> if found or NULL</td></tr></tbody></table></div><h3><aname="xmlGetDtdElementDesc"id="xmlGetDtdElementDesc"></a>Function: xmlGetDtdElementDesc</h3><preclass="programlisting"><ahref="libxml-tree.html#xmlElementPtr">xmlElementPtr</a> xmlGetDtdElementDesc (<ahref="libxml-tree.html#xmlDtdPtr">xmlDtdPtr</a> dtd, <br/> const <ahref="libxml-xmlstring.html#xmlChar">xmlChar</a> * name)<br/>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>dtd</tt></i>:</span></td><td>a pointer to the DtD to search</td></tr><tr><td><spanclass="term"><i><tt>name</tt></i>:</span></td><td>the element name</td></tr><tr><td><spanclass="term"><i><tt>Returns</tt></i>:</span></td><td>the <ahref="libxml-tree.html#xmlElementPtr">xmlElementPtr</a> if found or NULL</td></tr></tbody></table></div><h3><aname="xmlGetDtdNotationDesc"id="xmlGetDtdNotationDesc"></a>Function: xmlGetDtdNotationDesc</h3><preclass="programlisting"><ahref="libxml-tree.html#xmlNotationPtr">xmlNotationPtr</a> xmlGetDtdNotationDesc (<ahref="libxml-tree.html#xmlDtdPtr">xmlDtdPtr</a> dtd, <br/> const <ahref="libxml-xmlstring.html#xmlChar">xmlChar</a> * name)<br/>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>dtd</tt></i>:</span></td><td>a pointer to the DtD to search</td></tr><tr><td><spanclass="term"><i><tt>elem</tt></i>:</span></td><td>the element name</td></tr><tr><td><spanclass="term"><i><tt>name</tt></i>:</span></td><td>the <ahref="libxml-SAX.html#attribute">attribute</a> name</td></tr><tr><td><spanclass="term"><i><tt>prefix</tt></i>:</span></td><td>the <ahref="libxml-SAX.html#attribute">attribute</a> namespace prefix</td></tr><tr><td><spanclass="term"><i><tt>Returns</tt></i>:</span></td><td>the <ahref="libxml-tree.html#xmlAttributePtr">xmlAttributePtr</a> if found or NULL</td></tr></tbody></table></div><h3><aname="xmlGetDtdQElementDesc"id="xmlGetDtdQElementDesc"></a>Function: xmlGetDtdQElementDesc</h3><preclass="programlisting"><ahref="libxml-tree.html#xmlElementPtr">xmlElementPtr</a> xmlGetDtdQElementDesc (<ahref="libxml-tree.html#xmlDtdPtr">xmlDtdPtr</a> dtd, <br/> const <ahref="libxml-xmlstring.html#xmlChar">xmlChar</a> * name, <br/> const <ahref="libxml-xmlstring.html#xmlChar">xmlChar</a> * prefix)<br/>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>dtd</tt></i>:</span></td><td>a pointer to the DtD to search</td></tr><tr><td><spanclass="term"><i><tt>name</tt></i>:</span></td><td>the element name</td></tr><tr><td><spanclass="term"><i><tt>prefix</tt></i>:</span></td><td>the element namespace prefix</td></tr><tr><td><spanclass="term"><i><tt>Returns</tt></i>:</span></td><td>the <ahref="libxml-tree.html#xmlElementPtr">xmlElementPtr</a> if found or NULL</td></tr></tbody></table></div><h3><aname="xmlGetID"id="xmlGetID"></a>Function: xmlGetID</h3><preclass="programlisting"><ahref="libxml-tree.html#xmlAttrPtr">xmlAttrPtr</a> xmlGetID (<ahref="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> doc, <br/> const <ahref="libxml-xmlstring.html#xmlChar">xmlChar</a> * ID)<br/>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>doc</tt></i>:</span></td><td>pointer to the document</td></tr><tr><td><spanclass="term"><i><tt>ID</tt></i>:</span></td><td>the ID value</td></tr><tr><td><spanclass="term"><i><tt>Returns</tt></i>:</span></td><td>NULL if not found, otherwise the <ahref="libxml-tree.html#xmlAttrPtr">xmlAttrPtr</a> defining the ID</td></tr></tbody></table></div><h3><aname="xmlGetRefs"id="xmlGetRefs"></a>Function: xmlGetRefs</h3><preclass="programlisting"><ahref="libxml-list.html#xmlListPtr">xmlListPtr</a> xmlGetRefs (<ahref="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> doc, <br/> const <ahref="libxml-xmlstring.html#xmlChar">xmlChar</a> * ID)<br/>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>doc</tt></i>:</span></td><td>pointer to the document</td></tr><tr><td><spanclass="term"><i><tt>ID</tt></i>:</span></td><td>the ID value</td></tr><tr><td><spanclass="term"><i><tt>Returns</tt></i>:</span></td><td>NULL if not found, otherwise node set for the ID.</td></tr></tbody></table></div><h3><aname="xmlIsID"id="xmlIsID"></a>Function: xmlIsID</h3><preclass="programlisting">int xmlIsID (<ahref="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> doc, <br/><ahref="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> elem, <br/><ahref="libxml-tree.html#xmlAttrPtr">xmlAttrPtr</a> attr)<br/>
</pre><p>Determine whether an <ahref="libxml-SAX.html#attribute">attribute</a> is of type ID. In case we have DTD(s) then this is done if DTD loading has been requested. In the case of HTML documents parsed with the HTML parser, then ID detection is done systematically.</p>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>doc</tt></i>:</span></td><td>the document</td></tr><tr><td><spanclass="term"><i><tt>elem</tt></i>:</span></td><td>the element carrying the <ahref="libxml-SAX.html#attribute">attribute</a></td></tr><tr><td><spanclass="term"><i><tt>attr</tt></i>:</span></td><td>the <ahref="libxml-SAX.html#attribute">attribute</a></td></tr><tr><td><spanclass="term"><i><tt>Returns</tt></i>:</span></td><td>0 or 1 depending on the lookup result</td></tr></tbody></table></div><h3><aname="xmlIsMixedElement"id="xmlIsMixedElement"></a>Function: xmlIsMixedElement</h3><preclass="programlisting">int xmlIsMixedElement (<ahref="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> doc, <br/> const <ahref="libxml-xmlstring.html#xmlChar">xmlChar</a> * name)<br/>
</pre><p>Search in the DtDs whether an element accept Mixed content (or ANY) basically if it is supposed to accept text childs</p>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>doc</tt></i>:</span></td><td>the document</td></tr><tr><td><spanclass="term"><i><tt>name</tt></i>:</span></td><td>the element name</td></tr><tr><td><spanclass="term"><i><tt>Returns</tt></i>:</span></td><td>0 if no, 1 if yes, and -1 if no element description is available</td></tr></tbody></table></div><h3><aname="xmlIsRef"id="xmlIsRef"></a>Function: xmlIsRef</h3><preclass="programlisting">int xmlIsRef (<ahref="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> doc, <br/><ahref="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> elem, <br/><ahref="libxml-tree.html#xmlAttrPtr">xmlAttrPtr</a> attr)<br/>
</pre><p>Determine whether an <ahref="libxml-SAX.html#attribute">attribute</a> is of type Ref. In case we have DTD(s) then this is simple, otherwise we use an heuristic: name Ref (upper or lowercase).</p>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>doc</tt></i>:</span></td><td>the document</td></tr><tr><td><spanclass="term"><i><tt>elem</tt></i>:</span></td><td>the element carrying the <ahref="libxml-SAX.html#attribute">attribute</a></td></tr><tr><td><spanclass="term"><i><tt>attr</tt></i>:</span></td><td>the <ahref="libxml-SAX.html#attribute">attribute</a></td></tr><tr><td><spanclass="term"><i><tt>Returns</tt></i>:</span></td><td>0 or 1 depending on the lookup result</td></tr></tbody></table></div><h3><aname="xmlNewDocElementContent"id="xmlNewDocElementContent"></a>Function: xmlNewDocElementContent</h3><preclass="programlisting"><ahref="libxml-tree.html#xmlElementContentPtr">xmlElementContentPtr</a> xmlNewDocElementContent (<ahref="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> doc, <br/> const <ahref="libxml-xmlstring.html#xmlChar">xmlChar</a> * name, <br/><ahref="libxml-tree.html#xmlElementContentType">xmlElementContentType</a> type)<br/>
</pre><p>Allocate an element content structure for the document.</p>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>doc</tt></i>:</span></td><td>the document</td></tr><tr><td><spanclass="term"><i><tt>name</tt></i>:</span></td><td>the subelement name or NULL</td></tr><tr><td><spanclass="term"><i><tt>type</tt></i>:</span></td><td>the type of element content decl</td></tr><tr><td><spanclass="term"><i><tt>Returns</tt></i>:</span></td><td>NULL if not, otherwise the new element content structure</td></tr></tbody></table></div><h3><aname="xmlNewElementContent"id="xmlNewElementContent"></a>Function: xmlNewElementContent</h3><preclass="programlisting"><ahref="libxml-tree.html#xmlElementContentPtr">xmlElementContentPtr</a> xmlNewElementContent (const <ahref="libxml-xmlstring.html#xmlChar">xmlChar</a> * name, <br/><ahref="libxml-tree.html#xmlElementContentType">xmlElementContentType</a> type)<br/>
</pre><p>Allocate an element content structure. Deprecated in favor of <ahref="libxml-valid.html#xmlNewDocElementContent">xmlNewDocElementContent</a></p>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>name</tt></i>:</span></td><td>the subelement name or NULL</td></tr><tr><td><spanclass="term"><i><tt>type</tt></i>:</span></td><td>the type of element content decl</td></tr><tr><td><spanclass="term"><i><tt>Returns</tt></i>:</span></td><td>NULL if not, otherwise the new element content structure</td></tr></tbody></table></div><h3><aname="xmlNewValidCtxt"id="xmlNewValidCtxt"></a>Function: xmlNewValidCtxt</h3><preclass="programlisting"><ahref="libxml-valid.html#xmlValidCtxtPtr">xmlValidCtxtPtr</a> xmlNewValidCtxt (void)<br/>
</pre><p>Allocate a validation context structure.</p>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>Returns</tt></i>:</span></td><td>NULL if not, otherwise the new validation context structure</td></tr></tbody></table></div><h3><aname="xmlRemoveID"id="xmlRemoveID"></a>Function: xmlRemoveID</h3><preclass="programlisting">int xmlRemoveID (<ahref="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> doc, <br/><ahref="libxml-tree.html#xmlAttrPtr">xmlAttrPtr</a> attr)<br/>
</pre><p>Remove the given <ahref="libxml-SAX.html#attribute">attribute</a> from the ID table maintained internally.</p>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>doc</tt></i>:</span></td><td>the document</td></tr><tr><td><spanclass="term"><i><tt>attr</tt></i>:</span></td><td>the <ahref="libxml-SAX.html#attribute">attribute</a></td></tr><tr><td><spanclass="term"><i><tt>Returns</tt></i>:</span></td><td>-1 if the lookup failed and 0 otherwise</td></tr></tbody></table></div><h3><aname="xmlRemoveRef"id="xmlRemoveRef"></a>Function: xmlRemoveRef</h3><preclass="programlisting">int xmlRemoveRef (<ahref="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> doc, <br/><ahref="libxml-tree.html#xmlAttrPtr">xmlAttrPtr</a> attr)<br/>
</pre><p>Remove the given <ahref="libxml-SAX.html#attribute">attribute</a> from the Ref table maintained internally.</p>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>doc</tt></i>:</span></td><td>the document</td></tr><tr><td><spanclass="term"><i><tt>attr</tt></i>:</span></td><td>the <ahref="libxml-SAX.html#attribute">attribute</a></td></tr><tr><td><spanclass="term"><i><tt>Returns</tt></i>:</span></td><td>-1 if the lookup failed and 0 otherwise</td></tr></tbody></table></div><h3><aname="xmlSnprintfElementContent"id="xmlSnprintfElementContent"></a>Function: xmlSnprintfElementContent</h3><preclass="programlisting">void xmlSnprintfElementContent (char * buf, <br/> int size, <br/><ahref="libxml-tree.html#xmlElementContentPtr">xmlElementContentPtr</a> content, <br/> int englob)<br/>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>buf</tt></i>:</span></td><td>an output buffer</td></tr><tr><td><spanclass="term"><i><tt>size</tt></i>:</span></td><td>the buffer size</td></tr><tr><td><spanclass="term"><i><tt>content</tt></i>:</span></td><td>An element table</td></tr><tr><td><spanclass="term"><i><tt>englob</tt></i>:</span></td><td>1 if one must print the englobing parenthesis, 0 otherwise</td></tr></tbody></table></div><h3><aname="xmlSprintfElementContent"id="xmlSprintfElementContent"></a>Function: xmlSprintfElementContent</h3><preclass="programlisting">void xmlSprintfElementContent (char * buf, <br/><ahref="libxml-tree.html#xmlElementContentPtr">xmlElementContentPtr</a> content, <br/> int englob)<br/>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>buf</tt></i>:</span></td><td>an output buffer</td></tr><tr><td><spanclass="term"><i><tt>content</tt></i>:</span></td><td>An element table</td></tr><tr><td><spanclass="term"><i><tt>englob</tt></i>:</span></td><td>1 if one must print the englobing parenthesis, 0 otherwise</td></tr></tbody></table></div><h3><aname="xmlValidBuildContentModel"id="xmlValidBuildContentModel"></a>Function: xmlValidBuildContentModel</h3><preclass="programlisting">int xmlValidBuildContentModel (<ahref="libxml-valid.html#xmlValidCtxtPtr">xmlValidCtxtPtr</a> ctxt, <br/><ahref="libxml-tree.html#xmlElementPtr">xmlElementPtr</a> elem)<br/>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>ctxt</tt></i>:</span></td><td>a validation context</td></tr><tr><td><spanclass="term"><i><tt>elem</tt></i>:</span></td><td>an element declaration node</td></tr><tr><td><spanclass="term"><i><tt>Returns</tt></i>:</span></td><td>1 in case of success, 0 in case of error</td></tr></tbody></table></div><h3><aname="xmlValidCtxtNormalizeAttributeValue"id="xmlValidCtxtNormalizeAttributeValue"></a>Function: xmlValidCtxtNormalizeAttributeValue</h3><preclass="programlisting"><ahref="libxml-xmlstring.html#xmlChar">xmlChar</a> * xmlValidCtxtNormalizeAttributeValue (<ahref="libxml-valid.html#xmlValidCtxtPtr">xmlValidCtxtPtr</a> ctxt, <br/><ahref="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> doc, <br/><ahref="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> elem, <br/> const <ahref="libxml-xmlstring.html#xmlChar">xmlChar</a> * name, <br/> const <ahref="libxml-xmlstring.html#xmlChar">xmlChar</a> * value)<br/>
</pre><p>Does the validation related extra step of the normalization of <ahref="libxml-SAX.html#attribute">attribute</a> values: If the declared value is not CDATA, then the XML processor must further process the normalized <ahref="libxml-SAX.html#attribute">attribute</a> value by discarding any leading and trailing space (#x20) characters, and by replacing sequences of space (#x20) <ahref="libxml-SAX.html#characters">characters</a> by single space (#x20) character. Also check VC: Standalone Document Declaration in P32, and update ctxt->valid accordingly</p>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>ctxt</tt></i>:</span></td><td>the validation context or NULL</td></tr><tr><td><spanclass="term"><i><tt>doc</tt></i>:</span></td><td>the document</td></tr><tr><td><spanclass="term"><i><tt>elem</tt></i>:</span></td><td>the parent</td></tr><tr><td><spanclass="term"><i><tt>name</tt></i>:</span></td><td>the <ahref="libxml-SAX.html#attribute">attribute</a> name</td></tr><tr><td><spanclass="term"><i><tt>value</tt></i>:</span></td><td>the <ahref="libxml-SAX.html#attribute">attribute</a> value</td></tr><tr><td><spanclass="term"><i><tt>Returns</tt></i>:</span></td><td>a new normalized string if normalization is needed, NULL otherwise the caller must free the returned value.</td></tr></tbody></table></div><h3><aname="xmlValidGetPotentialChildren"id="xmlValidGetPotentialChildren"></a>Function: xmlValidGetPotentialChildren</h3><preclass="programlisting">int xmlValidGetPotentialChildren (<ahref="libxml-tree.html#xmlElementContent">xmlElementContent</a> * ctree, <br/> const <ahref="libxml-xmlstring.html#xmlChar">xmlChar</a> ** names, <br/> int * len, <br/> int max)<br/>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>ctree</tt></i>:</span></td><td>an element content tree</td></tr><tr><td><spanclass="term"><i><tt>names</tt></i>:</span></td><td>an array to store the list of child names</td></tr><tr><td><spanclass="term"><i><tt>len</tt></i>:</span></td><td>a pointer to the number of element in the list</td></tr><tr><td><spanclass="term"><i><tt>max</tt></i>:</span></td><td>the size of the array</td></tr><tr><td><spanclass="term"><i><tt>Returns</tt></i>:</span></td><td>the number of element in the list, or -1 in case of error.</td></tr></tbody></table></div><h3><aname="xmlValidGetValidElements"id="xmlValidGetValidElements"></a>Function: xmlValidGetValidElements</h3><preclass="programlisting">int xmlValidGetValidElements (<ahref="libxml-tree.html#xmlNode">xmlNode</a> * prev, <br/><ahref="libxml-tree.html#xmlNode">xmlNode</a> * next, <br/> const <ahref="libxml-xmlstring.html#xmlChar">xmlChar</a> ** names, <br/> int max)<br/>
</pre><p>This function returns the list of authorized children to insert within an existing tree while respecting the validity constraints forced by the Dtd. The insertion point is defined using @prev and @next in the following ways: to insert before 'node': xmlValidGetValidElements(node->prev, node, ... to insert next 'node': xmlValidGetValidElements(node, node->next, ... to replace 'node': xmlValidGetValidElements(node->prev, node->next, ... to prepend a child to 'node': xmlValidGetValidElements(NULL, node->childs, to append a child to 'node': xmlValidGetValidElements(node->last, NULL, ... pointers to the element names are inserted at the beginning of the array and do not need to be freed.</p>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>prev</tt></i>:</span></td><td>an element to insert after</td></tr><tr><td><spanclass="term"><i><tt>next</tt></i>:</span></td><td>an element to insert next</td></tr><tr><td><spanclass="term"><i><tt>names</tt></i>:</span></td><td>an array to store the list of child names</td></tr><tr><td><spanclass="term"><i><tt>max</tt></i>:</span></td><td>the size of the array</td></tr><tr><td><spanclass="term"><i><tt>Returns</tt></i>:</span></td><td>the number of element in the list, or -1 in case of error. If the function returns the value @max the caller is invited to grow the receiving array and retry.</td></tr></tbody></table></div><h3><aname="xmlValidNormalizeAttributeValue"id="xmlValidNormalizeAttributeValue"></a>Function: xmlValidNormalizeAttributeValue</h3><preclass="programlisting"><ahref="libxml-xmlstring.html#xmlChar">xmlChar</a> * xmlValidNormalizeAttributeValue (<ahref="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> doc, <br/><ahref="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> elem, <br/> const <ahref="libxml-xmlstring.html#xmlChar">xmlChar</a> * name, <br/> const <ahref="libxml-xmlstring.html#xmlChar">xmlChar</a> * value)<br/>
</pre><p>Does the validation related extra step of the normalization of <ahref="libxml-SAX.html#attribute">attribute</a> values: If the declared value is not CDATA, then the XML processor must further process the normalized <ahref="libxml-SAX.html#attribute">attribute</a> value by discarding any leading and trailing space (#x20) characters, and by replacing sequences of space (#x20) <ahref="libxml-SAX.html#characters">characters</a> by single space (#x20) character.</p>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>doc</tt></i>:</span></td><td>the document</td></tr><tr><td><spanclass="term"><i><tt>elem</tt></i>:</span></td><td>the parent</td></tr><tr><td><spanclass="term"><i><tt>name</tt></i>:</span></td><td>the <ahref="libxml-SAX.html#attribute">attribute</a> name</td></tr><tr><td><spanclass="term"><i><tt>value</tt></i>:</span></td><td>the <ahref="libxml-SAX.html#attribute">attribute</a> value</td></tr><tr><td><spanclass="term"><i><tt>Returns</tt></i>:</span></td><td>a new normalized string if normalization is needed, NULL otherwise the caller must free the returned value.</td></tr></tbody></table></div><h3><aname="xmlValidateAttributeDecl"id="xmlValidateAttributeDecl"></a>Function: xmlValidateAttributeDecl</h3><preclass="programlisting">int xmlValidateAttributeDecl (<ahref="libxml-valid.html#xmlValidCtxtPtr">xmlValidCtxtPtr</a> ctxt, <br/><ahref="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> doc, <br/><ahref="libxml-tree.html#xmlAttributePtr">xmlAttributePtr</a> attr)<br/>
</pre><p>Try to validate a single <ahref="libxml-SAX.html#attribute">attribute</a> definition basically it does the following checks as described by the XML-1.0 recommendation: - [ VC: Attribute Default Legal ] - [ VC: Enumeration ] - [ VC: ID Attribute Default ] The ID/IDREF uniqueness and matching are done separately</p>
</pre><p>Validate that the given <ahref="libxml-SAX.html#attribute">attribute</a> value match the proper production [ VC: ID ] Values of type ID must match the Name production.... [ VC: IDREF ] Values of type IDREF must match the Name production, and values of type IDREFS must match Names ... [ VC: Entity Name ] Values of type ENTITY must match the Name production, values of type ENTITIES must match Names ... [ VC: Name Token ] Values of type NMTOKEN must match the Nmtoken production; values of type NMTOKENS must match Nmtokens.</p>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>type</tt></i>:</span></td><td>an <ahref="libxml-SAX.html#attribute">attribute</a> type</td></tr><tr><td><spanclass="term"><i><tt>value</tt></i>:</span></td><td>an <ahref="libxml-SAX.html#attribute">attribute</a> value</td></tr><tr><td><spanclass="term"><i><tt>Returns</tt></i>:</span></td><td>1 if valid or 0 otherwise</td></tr></tbody></table></div><h3><aname="xmlValidateDocument"id="xmlValidateDocument"></a>Function: xmlValidateDocument</h3><preclass="programlisting">int xmlValidateDocument (<ahref="libxml-valid.html#xmlValidCtxtPtr">xmlValidCtxtPtr</a> ctxt, <br/><ahref="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> doc)<br/>
</pre><p>Try to validate the document instance basically it does the all the checks described by the XML Rec i.e. validates the internal and external subset (if present) and validate the document tree.</p>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>ctxt</tt></i>:</span></td><td>the validation context</td></tr><tr><td><spanclass="term"><i><tt>doc</tt></i>:</span></td><td>a document instance</td></tr><tr><td><spanclass="term"><i><tt>Returns</tt></i>:</span></td><td>1 if valid or 0 otherwise</td></tr></tbody></table></div><h3><aname="xmlValidateDocumentFinal"id="xmlValidateDocumentFinal"></a>Function: xmlValidateDocumentFinal</h3><preclass="programlisting">int xmlValidateDocumentFinal (<ahref="libxml-valid.html#xmlValidCtxtPtr">xmlValidCtxtPtr</a> ctxt, <br/><ahref="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> doc)<br/>
</pre><p>Does the final step for the document validation once all the incremental validation steps have been completed basically it does the following checks described by the XML Rec Check all the IDREF/IDREFS attributes definition for validity</p>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>ctxt</tt></i>:</span></td><td>the validation context</td></tr><tr><td><spanclass="term"><i><tt>doc</tt></i>:</span></td><td>a document instance</td></tr><tr><td><spanclass="term"><i><tt>Returns</tt></i>:</span></td><td>1 if valid or 0 otherwise</td></tr></tbody></table></div><h3><aname="xmlValidateDtd"id="xmlValidateDtd"></a>Function: xmlValidateDtd</h3><preclass="programlisting">int xmlValidateDtd (<ahref="libxml-valid.html#xmlValidCtxtPtr">xmlValidCtxtPtr</a> ctxt, <br/><ahref="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> doc, <br/><ahref="libxml-tree.html#xmlDtdPtr">xmlDtdPtr</a> dtd)<br/>
</pre><p>Try to validate the document against the dtd instance Basically it does check all the definitions in the DtD. Note the the internal subset (if present) is de-coupled (i.e. not used), which could give problems if ID or IDREF is present.</p>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>ctxt</tt></i>:</span></td><td>the validation context</td></tr><tr><td><spanclass="term"><i><tt>doc</tt></i>:</span></td><td>a document instance</td></tr><tr><td><spanclass="term"><i><tt>dtd</tt></i>:</span></td><td>a dtd instance</td></tr><tr><td><spanclass="term"><i><tt>Returns</tt></i>:</span></td><td>1 if valid or 0 otherwise</td></tr></tbody></table></div><h3><aname="xmlValidateDtdFinal"id="xmlValidateDtdFinal"></a>Function: xmlValidateDtdFinal</h3><preclass="programlisting">int xmlValidateDtdFinal (<ahref="libxml-valid.html#xmlValidCtxtPtr">xmlValidCtxtPtr</a> ctxt, <br/><ahref="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> doc)<br/>
</pre><p>Does the final step for the dtds validation once all the subsets have been parsed basically it does the following checks described by the XML Rec - check that ENTITY and ENTITIES type attributes default or possible values matches one of the defined entities. - check that NOTATION type attributes default or possible values matches one of the defined notations.</p>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>ctxt</tt></i>:</span></td><td>the validation context</td></tr><tr><td><spanclass="term"><i><tt>doc</tt></i>:</span></td><td>a document instance</td></tr><tr><td><spanclass="term"><i><tt>Returns</tt></i>:</span></td><td>1 if valid or 0 if invalid and -1 if not well-formed</td></tr></tbody></table></div><h3><aname="xmlValidateElement"id="xmlValidateElement"></a>Function: xmlValidateElement</h3><preclass="programlisting">int xmlValidateElement (<ahref="libxml-valid.html#xmlValidCtxtPtr">xmlValidCtxtPtr</a> ctxt, <br/><ahref="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> doc, <br/><ahref="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> elem)<br/>
</pre><p>Try to validate the subtree under an element</p>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>ctxt</tt></i>:</span></td><td>the validation context</td></tr><tr><td><spanclass="term"><i><tt>doc</tt></i>:</span></td><td>a document instance</td></tr><tr><td><spanclass="term"><i><tt>elem</tt></i>:</span></td><td>an element instance</td></tr><tr><td><spanclass="term"><i><tt>Returns</tt></i>:</span></td><td>1 if valid or 0 otherwise</td></tr></tbody></table></div><h3><aname="xmlValidateElementDecl"id="xmlValidateElementDecl"></a>Function: xmlValidateElementDecl</h3><preclass="programlisting">int xmlValidateElementDecl (<ahref="libxml-valid.html#xmlValidCtxtPtr">xmlValidCtxtPtr</a> ctxt, <br/><ahref="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> doc, <br/><ahref="libxml-tree.html#xmlElementPtr">xmlElementPtr</a> elem)<br/>
</pre><p>Try to validate a single element definition basically it does the following checks as described by the XML-1.0 recommendation: - [ VC: One ID per Element Type ] - [ VC: No Duplicate Types ] - [ VC: Unique Element Type Declaration ]</p>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>value</tt></i>:</span></td><td>an Name value</td></tr><tr><td><spanclass="term"><i><tt>Returns</tt></i>:</span></td><td>1 if valid or 0 otherwise</td></tr></tbody></table></div><h3><aname="xmlValidateNamesValue"id="xmlValidateNamesValue"></a>Function: xmlValidateNamesValue</h3><preclass="programlisting">int xmlValidateNamesValue (const <ahref="libxml-xmlstring.html#xmlChar">xmlChar</a> * value)<br/>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>value</tt></i>:</span></td><td>an Nmtokens value</td></tr><tr><td><spanclass="term"><i><tt>Returns</tt></i>:</span></td><td>1 if valid or 0 otherwise</td></tr></tbody></table></div><h3><aname="xmlValidateNotationDecl"id="xmlValidateNotationDecl"></a>Function: xmlValidateNotationDecl</h3><preclass="programlisting">int xmlValidateNotationDecl (<ahref="libxml-valid.html#xmlValidCtxtPtr">xmlValidCtxtPtr</a> ctxt, <br/><ahref="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> doc, <br/><ahref="libxml-tree.html#xmlNotationPtr">xmlNotationPtr</a> nota)<br/>
</pre><p>Try to validate a single notation definition basically it does the following checks as described by the XML-1.0 recommendation: - it seems that no validity constraint exists on notation declarations But this function get called anyway ...</p>
</pre><p>Try to validate a single <ahref="libxml-SAX.html#attribute">attribute</a> for an element basically it does the following checks as described by the XML-1.0 recommendation: - [ VC: Attribute Value Type ] - [ VC: Fixed Attribute Default ] - [ VC: Entity Name ] - [ VC: Name Token ] - [ VC: ID ] - [ VC: IDREF ] - [ VC: Entity Name ] - [ VC: Notation Attributes ] The ID/IDREF uniqueness and matching are done separately</p>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>ctxt</tt></i>:</span></td><td>the validation context</td></tr><tr><td><spanclass="term"><i><tt>doc</tt></i>:</span></td><td>a document instance</td></tr><tr><td><spanclass="term"><i><tt>elem</tt></i>:</span></td><td>an element instance</td></tr><tr><td><spanclass="term"><i><tt>attr</tt></i>:</span></td><td>an <ahref="libxml-SAX.html#attribute">attribute</a> instance</td></tr><tr><td><spanclass="term"><i><tt>value</tt></i>:</span></td><td>the <ahref="libxml-SAX.html#attribute">attribute</a> value (without entities processing)</td></tr><tr><td><spanclass="term"><i><tt>Returns</tt></i>:</span></td><td>1 if valid or 0 otherwise</td></tr></tbody></table></div><h3><aname="xmlValidateOneElement"id="xmlValidateOneElement"></a>Function: xmlValidateOneElement</h3><preclass="programlisting">int xmlValidateOneElement (<ahref="libxml-valid.html#xmlValidCtxtPtr">xmlValidCtxtPtr</a> ctxt, <br/><ahref="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> doc, <br/><ahref="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> elem)<br/>
</pre><p>Try to validate a single element and it's attributes, basically it does the following checks as described by the XML-1.0 recommendation: - [ VC: Element Valid ] - [ VC: Required Attribute ] Then call xmlValidateOneAttribute() for each <ahref="libxml-SAX.html#attribute">attribute</a> present. The ID/IDREF checkings are done separately</p>
</pre><p>Try to validate a single namespace declaration for an element basically it does the following checks as described by the XML-1.0 recommendation: - [ VC: Attribute Value Type ] - [ VC: Fixed Attribute Default ] - [ VC: Entity Name ] - [ VC: Name Token ] - [ VC: ID ] - [ VC: IDREF ] - [ VC: Entity Name ] - [ VC: Notation Attributes ] The ID/IDREF uniqueness and matching are done separately</p>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>ctxt</tt></i>:</span></td><td>the validation context</td></tr><tr><td><spanclass="term"><i><tt>doc</tt></i>:</span></td><td>a document instance</td></tr><tr><td><spanclass="term"><i><tt>elem</tt></i>:</span></td><td>an element instance</td></tr><tr><td><spanclass="term"><i><tt>qname</tt></i>:</span></td><td>the qualified name as appearing in the serialization</td></tr><tr><td><spanclass="term"><i><tt>Returns</tt></i>:</span></td><td>1 if no validation problem was found or 0 otherwise</td></tr></tbody></table></div><h3><aname="xmlValidatePushCData"id="xmlValidatePushCData"></a>Function: xmlValidatePushCData</h3><preclass="programlisting">int xmlValidatePushCData (<ahref="libxml-valid.html#xmlValidCtxtPtr">xmlValidCtxtPtr</a> ctxt, <br/> const <ahref="libxml-xmlstring.html#xmlChar">xmlChar</a> * data, <br/> int len)<br/>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>ctxt</tt></i>:</span></td><td>the validation context</td></tr><tr><td><spanclass="term"><i><tt>data</tt></i>:</span></td><td>some character data read</td></tr><tr><td><spanclass="term"><i><tt>len</tt></i>:</span></td><td>the lenght of the data</td></tr><tr><td><spanclass="term"><i><tt>Returns</tt></i>:</span></td><td>1 if no validation problem was found or 0 otherwise</td></tr></tbody></table></div><h3><aname="xmlValidatePushElement"id="xmlValidatePushElement"></a>Function: xmlValidatePushElement</h3><preclass="programlisting">int xmlValidatePushElement (<ahref="libxml-valid.html#xmlValidCtxtPtr">xmlValidCtxtPtr</a> ctxt, <br/><ahref="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> doc, <br/><ahref="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> elem, <br/> const <ahref="libxml-xmlstring.html#xmlChar">xmlChar</a> * qname)<br/>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>ctxt</tt></i>:</span></td><td>the validation context</td></tr><tr><td><spanclass="term"><i><tt>doc</tt></i>:</span></td><td>a document instance</td></tr><tr><td><spanclass="term"><i><tt>elem</tt></i>:</span></td><td>an element instance</td></tr><tr><td><spanclass="term"><i><tt>qname</tt></i>:</span></td><td>the qualified name as appearing in the serialization</td></tr><tr><td><spanclass="term"><i><tt>Returns</tt></i>:</span></td><td>1 if no validation problem was found or 0 otherwise</td></tr></tbody></table></div><h3><aname="xmlValidateRoot"id="xmlValidateRoot"></a>Function: xmlValidateRoot</h3><preclass="programlisting">int xmlValidateRoot (<ahref="libxml-valid.html#xmlValidCtxtPtr">xmlValidCtxtPtr</a> ctxt, <br/><ahref="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> doc)<br/>
</pre><p>Try to validate a the root element basically it does the following check as described by the XML-1.0 recommendation: - [ VC: Root Element Type ] it doesn't try to recurse or apply other check to the element</p>
<divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>ctxt</tt></i>:</span></td><td>the validation context</td></tr><tr><td><spanclass="term"><i><tt>doc</tt></i>:</span></td><td>a document instance</td></tr><tr><td><spanclass="term"><i><tt>Returns</tt></i>:</span></td><td>1 if valid or 0 otherwise</td></tr></tbody></table></div><h3><aname="xmlValidityErrorFunc"id="xmlValidityErrorFunc"></a>Function type: xmlValidityErrorFunc</h3><preclass="programlisting">Function type: xmlValidityErrorFunc
</pre><p>Callback called when a validity error is found. This is a message oriented function similar to an *printf function.</p><divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>ctx</tt></i>:</span></td><td>usually an <ahref="libxml-valid.html#xmlValidCtxtPtr">xmlValidCtxtPtr</a> to a validity error context, but comes from ctxt->userData (which normally contains such a pointer); ctxt->userData can be changed by the user.</td></tr><tr><td><spanclass="term"><i><tt>msg</tt></i>:</span></td><td>the string to format *printf like vararg</td></tr><tr><td><spanclass="term"><i><tt>...</tt></i>:</span></td><td>remaining arguments to the format</td></tr></tbody></table></div><br/>
</pre><p>Callback called when a validity warning is found. This is a message oriented function similar to an *printf function.</p><divclass="variablelist"><tableborder="0"><colalign="left"/><tbody><tr><td><spanclass="term"><i><tt>ctx</tt></i>:</span></td><td>usually an <ahref="libxml-valid.html#xmlValidCtxtPtr">xmlValidCtxtPtr</a> to a validity error context, but comes from ctxt->userData (which normally contains such a pointer); ctxt->userData can be changed by the user.</td></tr><tr><td><spanclass="term"><i><tt>msg</tt></i>:</span></td><td>the string to format *printf like vararg</td></tr><tr><td><spanclass="term"><i><tt>...</tt></i>:</span></td><td>remaining arguments to the format</td></tr></tbody></table></div><br/>