2011-08-16 11:38:58 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2009-07-11 07:50:41 +00:00
|
|
|
<!-- $Revision$ -->
|
2007-12-23 20:57:49 +00:00
|
|
|
<appendix xml:id="libxml.constants" xmlns="http://docbook.org/ns/docbook">
|
2004-12-05 19:54:29 +00:00
|
|
|
&reftitle.constants;
|
|
|
|
&extension.constants;
|
|
|
|
<variablelist>
|
2005-09-08 11:02:23 +00:00
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<constant>LIBXML_COMPACT</constant>
|
|
|
|
(<type>integer</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
Activate small nodes allocation optimization. This may speed up your
|
|
|
|
application without needing to change the code.
|
|
|
|
</simpara>
|
|
|
|
<note>
|
|
|
|
<para>
|
|
|
|
Only available in Libxml >= 2.6.21
|
|
|
|
</para>
|
|
|
|
</note>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2004-12-05 19:54:29 +00:00
|
|
|
<varlistentry>
|
|
|
|
<term>
|
2005-02-14 18:01:02 +00:00
|
|
|
<constant>LIBXML_DTDATTR</constant>
|
2004-12-05 19:54:29 +00:00
|
|
|
(<type>integer</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
2005-02-14 18:01:02 +00:00
|
|
|
Default DTD attributes
|
2004-12-05 19:54:29 +00:00
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<constant>LIBXML_DTDLOAD</constant>
|
|
|
|
(<type>integer</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
Load the external subset
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
2005-02-14 18:01:02 +00:00
|
|
|
<constant>LIBXML_DTDVALID</constant>
|
2004-12-05 19:54:29 +00:00
|
|
|
(<type>integer</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
2005-02-14 18:01:02 +00:00
|
|
|
Validate with the DTD
|
2004-12-05 19:54:29 +00:00
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
2005-09-08 11:02:23 +00:00
|
|
|
<constant>LIBXML_NOBLANKS</constant>
|
2004-12-05 19:54:29 +00:00
|
|
|
(<type>integer</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
2005-09-08 11:02:23 +00:00
|
|
|
Remove blank nodes
|
2004-12-05 19:54:29 +00:00
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
2005-09-08 11:02:23 +00:00
|
|
|
<constant>LIBXML_NOCDATA</constant>
|
2004-12-05 19:54:29 +00:00
|
|
|
(<type>integer</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
2005-09-08 11:02:23 +00:00
|
|
|
Merge CDATA as text nodes
|
2004-12-05 19:54:29 +00:00
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2005-09-08 11:45:22 +00:00
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<constant>LIBXML_NOEMPTYTAG</constant>
|
|
|
|
(<type>integer</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
Expand empty tags (e.g. <literal><br/></literal> to
|
|
|
|
<literal><br></br></literal>)
|
|
|
|
</simpara>
|
|
|
|
<note>
|
|
|
|
<para>
|
|
|
|
This option is currently just available in the
|
2007-12-23 20:57:49 +00:00
|
|
|
<xref linkend="domdocument.save" /> and
|
|
|
|
<xref linkend="domdocument.savexml" /> functions.
|
2005-09-08 11:45:22 +00:00
|
|
|
</para>
|
|
|
|
</note>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2004-12-05 19:54:29 +00:00
|
|
|
<varlistentry>
|
|
|
|
<term>
|
2005-09-08 11:02:23 +00:00
|
|
|
<constant>LIBXML_NOENT</constant>
|
2004-12-05 19:54:29 +00:00
|
|
|
(<type>integer</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
2005-09-08 11:02:23 +00:00
|
|
|
Substitute entities
|
2005-02-14 18:01:02 +00:00
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
2005-09-08 11:02:23 +00:00
|
|
|
<constant>LIBXML_NOERROR</constant>
|
2005-02-14 18:01:02 +00:00
|
|
|
(<type>integer</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
2005-09-08 11:02:23 +00:00
|
|
|
Suppress error reports
|
2004-12-05 19:54:29 +00:00
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
2005-09-08 11:02:23 +00:00
|
|
|
<constant>LIBXML_NONET</constant>
|
2004-12-05 19:54:29 +00:00
|
|
|
(<type>integer</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
2005-09-08 11:02:23 +00:00
|
|
|
Disable network access when loading documents
|
2004-12-05 19:54:29 +00:00
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
2005-09-08 11:02:23 +00:00
|
|
|
<constant>LIBXML_NOWARNING</constant>
|
2004-12-05 19:54:29 +00:00
|
|
|
(<type>integer</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
2005-09-08 11:02:23 +00:00
|
|
|
Suppress warning reports
|
2004-12-05 19:54:29 +00:00
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
2005-09-08 11:02:23 +00:00
|
|
|
<constant>LIBXML_NOXMLDECL</constant>
|
2004-12-05 19:54:29 +00:00
|
|
|
(<type>integer</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
2005-09-08 11:02:23 +00:00
|
|
|
Drop the XML declaration when saving a document
|
2004-12-05 19:54:29 +00:00
|
|
|
</simpara>
|
2005-09-08 11:02:23 +00:00
|
|
|
<note>
|
|
|
|
<para>
|
|
|
|
Only available in Libxml >= 2.6.21
|
|
|
|
</para>
|
|
|
|
</note>
|
2004-12-05 19:54:29 +00:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
2005-09-08 11:02:23 +00:00
|
|
|
<constant>LIBXML_NSCLEAN</constant>
|
2004-12-05 19:54:29 +00:00
|
|
|
(<type>integer</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
2005-09-08 11:02:23 +00:00
|
|
|
Remove redundant namespaces declarations
|
2004-12-05 19:54:29 +00:00
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2010-11-11 08:26:54 +00:00
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<constant>LIBXML_PARSEHUGE</constant>
|
|
|
|
(<type>integer</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
2011-12-02 11:51:41 +00:00
|
|
|
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.
|
2010-11-11 08:26:54 +00:00
|
|
|
</simpara>
|
2011-12-02 11:51:41 +00:00
|
|
|
<note>
|
|
|
|
<para>
|
2011-12-18 16:26:33 +00:00
|
|
|
Only available in Libxml >= 2.7.0 (as of PHP >= 5.3.2 and PHP >= 5.2.12)
|
2011-12-02 11:51:41 +00:00
|
|
|
</para>
|
|
|
|
</note>
|
2010-11-11 08:26:54 +00:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2005-01-02 13:40:52 +00:00
|
|
|
<varlistentry>
|
|
|
|
<term>
|
2005-09-08 11:02:23 +00:00
|
|
|
<constant>LIBXML_XINCLUDE</constant>
|
2005-01-02 13:40:52 +00:00
|
|
|
(<type>integer</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
2005-09-08 11:02:23 +00:00
|
|
|
Implement XInclude substitution
|
2005-01-02 13:40:52 +00:00
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2005-02-14 18:01:02 +00:00
|
|
|
<varlistentry>
|
|
|
|
<term>
|
2005-09-08 11:02:23 +00:00
|
|
|
<constant>LIBXML_ERR_ERROR</constant>
|
2005-02-14 18:01:02 +00:00
|
|
|
(<type>integer</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
2005-09-08 11:02:23 +00:00
|
|
|
A recoverable error
|
2005-02-14 18:01:02 +00:00
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
2005-09-08 11:02:23 +00:00
|
|
|
<constant>LIBXML_ERR_FATAL</constant>
|
2005-02-14 18:01:02 +00:00
|
|
|
(<type>integer</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
2005-09-08 11:02:23 +00:00
|
|
|
A fatal error
|
2005-02-14 18:01:02 +00:00
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
2005-09-08 11:02:23 +00:00
|
|
|
<constant>LIBXML_ERR_NONE</constant>
|
2005-02-14 18:01:02 +00:00
|
|
|
(<type>integer</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
2005-09-08 11:02:23 +00:00
|
|
|
No errors
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<constant>LIBXML_ERR_WARNING</constant>
|
|
|
|
(<type>integer</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
A simple warning
|
2005-02-14 18:01:02 +00:00
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2005-02-28 17:35:53 +00:00
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<constant>LIBXML_VERSION</constant>
|
|
|
|
(<type>integer</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
2005-03-01 15:21:54 +00:00
|
|
|
libxml version like 20605 or 20617
|
2005-02-28 17:35:53 +00:00
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<constant>LIBXML_DOTTED_VERSION</constant>
|
|
|
|
(<type>string</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
libxml version like 2.6.5 or 2.6.17
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2004-12-05 19:54:29 +00:00
|
|
|
</variablelist>
|
2007-12-23 20:57:49 +00:00
|
|
|
</appendix>
|
2004-12-05 19:54:29 +00:00
|
|
|
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
|
|
Local variables:
|
|
|
|
mode: sgml
|
|
|
|
sgml-omittag:t
|
|
|
|
sgml-shorttag:t
|
|
|
|
sgml-minimize-attributes:nil
|
|
|
|
sgml-always-quote-attributes:t
|
|
|
|
sgml-indent-step:1
|
|
|
|
sgml-indent-data:t
|
|
|
|
indent-tabs-mode:nil
|
|
|
|
sgml-parent-document:nil
|
2009-09-25 07:04:39 +00:00
|
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
2004-12-05 19:54:29 +00:00
|
|
|
sgml-exposed-tags:nil
|
|
|
|
sgml-local-catalogs:nil
|
|
|
|
sgml-local-ecat-files:nil
|
|
|
|
End:
|
|
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
|
|
vim: et tw=78 syn=sgml
|
|
|
|
vi: ts=1 sw=1
|
|
|
|
-->
|