<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Predefined Constants</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="libxml.resources.html">Resource Types</a></div> <div class="next" style="text-align: right; float: right;"><a href="class.libxmlerror.html">libXMLError</a></div> <div class="up"><a href="book.libxml.html">libxml</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="libxml.constants" class="appendix"> <h1>Predefined Constants</h1> <p class="simpara"> The constants below are defined by this extension, and will only be available when the extension has either been compiled into PHP or dynamically loaded at runtime. </p> <dl> <dt id="constant.libxml-compact"> <span class="term"> <strong><code>LIBXML_COMPACT</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Activate small nodes allocation optimization. This may speed up your application without needing to change the code. </span> <blockquote class="note"><p><strong class="note">Note</strong>: <p class="para"> Only available in Libxml >= 2.6.21 </p> </p></blockquote> </dd> </dt> <dt id="constant.libxml-dtdattr"> <span class="term"> <strong><code>LIBXML_DTDATTR</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Default DTD attributes </span> </dd> </dt> <dt id="constant.libxml-dtdload"> <span class="term"> <strong><code>LIBXML_DTDLOAD</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Load the external subset </span> </dd> </dt> <dt id="constant.libxml-dtdvalid"> <span class="term"> <strong><code>LIBXML_DTDVALID</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Validate with the DTD </span> </dd> </dt> <dt id="constant.libxml-noblanks"> <span class="term"> <strong><code>LIBXML_NOBLANKS</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Remove blank nodes </span> </dd> </dt> <dt id="constant.libxml-nocdata"> <span class="term"> <strong><code>LIBXML_NOCDATA</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Merge CDATA as text nodes </span> </dd> </dt> <dt id="constant.libxml-noemptytag"> <span class="term"> <strong><code>LIBXML_NOEMPTYTAG</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Expand empty tags (e.g. <em><br/></em> to <em><br></br></em>) </span> <blockquote class="note"><p><strong class="note">Note</strong>: <p class="para"> This option is currently just available in the <a href="domdocument.save.html" class="xref">DOMDocument::save</a> and <a href="domdocument.savexml.html" class="xref">DOMDocument::saveXML</a> functions. </p> </p></blockquote> </dd> </dt> <dt id="constant.libxml-noent"> <span class="term"> <strong><code>LIBXML_NOENT</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Substitute entities </span> </dd> </dt> <dt id="constant.libxml-noerror"> <span class="term"> <strong><code>LIBXML_NOERROR</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Suppress error reports </span> </dd> </dt> <dt id="constant.libxml-nonet"> <span class="term"> <strong><code>LIBXML_NONET</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Disable network access when loading documents </span> </dd> </dt> <dt id="constant.libxml-nowarning"> <span class="term"> <strong><code>LIBXML_NOWARNING</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Suppress warning reports </span> </dd> </dt> <dt id="constant.libxml-noxmldecl"> <span class="term"> <strong><code>LIBXML_NOXMLDECL</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Drop the XML declaration when saving a document </span> <blockquote class="note"><p><strong class="note">Note</strong>: <p class="para"> Only available in Libxml >= 2.6.21 </p> </p></blockquote> </dd> </dt> <dt id="constant.libxml-nsclean"> <span class="term"> <strong><code>LIBXML_NSCLEAN</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Remove redundant namespaces declarations </span> </dd> </dt> <dt id="constant.libxml-parsehuge"> <span class="term"> <strong><code>LIBXML_PARSEHUGE</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Sets XML_PARSE_HUGE flag, which relaxes any hardcoded limit from the parser. This affects limits like maximum depth of a document or the entity recursion, as well as limits of the size of text nodes. </span> <blockquote class="note"><p><strong class="note">Note</strong>: <p class="para"> Only available in Libxml >= 2.7.0 (as of PHP >= 5.3.2 and PHP >= 5.2.12) </p> </p></blockquote> </dd> </dt> <dt id="constant.libxml-xinclude"> <span class="term"> <strong><code>LIBXML_XINCLUDE</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Implement XInclude substitution </span> </dd> </dt> <dt id="constant.libxml-err-error"> <span class="term"> <strong><code>LIBXML_ERR_ERROR</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> A recoverable error </span> </dd> </dt> <dt id="constant.libxml-err-fatal"> <span class="term"> <strong><code>LIBXML_ERR_FATAL</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> A fatal error </span> </dd> </dt> <dt id="constant.libxml-err-none"> <span class="term"> <strong><code>LIBXML_ERR_NONE</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> No errors </span> </dd> </dt> <dt id="constant.libxml-err-warning"> <span class="term"> <strong><code>LIBXML_ERR_WARNING</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> A simple warning </span> </dd> </dt> <dt id="constant.libxml-version"> <span class="term"> <strong><code>LIBXML_VERSION</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> libxml version like 20605 or 20617 </span> </dd> </dt> <dt id="constant.libxml-dotted-version"> <span class="term"> <strong><code>LIBXML_DOTTED_VERSION</code></strong> (<span class="type"><a href="language.types.string.html" class="type string">string</a></span>) </span> <dd> <span class="simpara"> libxml version like 2.6.5 or 2.6.17 </span> </dd> </dt> <dt id="constant.libxml-schema-create"> <span class="term"> <strong><code>LIBXML_SCHEMA_CREATE</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Create default/fixed value nodes during XSD schema validation </span> <blockquote class="note"><p><strong class="note">Note</strong>: <p class="para"> Only available in Libxml >= 2.6.14 (as of PHP >= 5.5.2) </p> </p></blockquote> </dd> </dt> </dl> </div> <hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="libxml.resources.html">Resource Types</a></div> <div class="next" style="text-align: right; float: right;"><a href="class.libxmlerror.html">libXMLError</a></div> <div class="up"><a href="book.libxml.html">libxml</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>