mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Adding constants here and a small restructuring
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@90166 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
4de8c5a1db
commit
8eae845e64
2 changed files with 379 additions and 46 deletions
316
reference/xml/constants.xml
Normal file
316
reference/xml/constants.xml
Normal file
|
@ -0,0 +1,316 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<section id="xml.constants">
|
||||
&reftitle.constants;
|
||||
&extension.constants;
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<constant>XML_ERROR_NONE</constant>
|
||||
(<link linkend="language.types.integer">integer</link>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<constant>XML_ERROR_NO_MEMORY</constant>
|
||||
(<link linkend="language.types.integer">integer</link>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<constant>XML_ERROR_SYNTAX</constant>
|
||||
(<link linkend="language.types.integer">integer</link>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<constant>XML_ERROR_NO_ELEMENTS</constant>
|
||||
(<link linkend="language.types.integer">integer</link>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<constant>XML_ERROR_INVALID_TOKEN</constant>
|
||||
(<link linkend="language.types.integer">integer</link>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<constant>XML_ERROR_UNCLOSED_TOKEN</constant>
|
||||
(<link linkend="language.types.integer">integer</link>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<constant>XML_ERROR_PARTIAL_CHAR</constant>
|
||||
(<link linkend="language.types.integer">integer</link>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<constant>XML_ERROR_TAG_MISMATCH</constant>
|
||||
(<link linkend="language.types.integer">integer</link>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<constant>XML_ERROR_DUPLICATE_ATTRIBUTE</constant>
|
||||
(<link linkend="language.types.integer">integer</link>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<constant>XML_ERROR_JUNK_AFTER_DOC_ELEMENT</constant>
|
||||
(<link linkend="language.types.integer">integer</link>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<constant>XML_ERROR_PARAM_ENTITY_REF</constant>
|
||||
(<link linkend="language.types.integer">integer</link>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<constant>XML_ERROR_UNDEFINED_ENTITY</constant>
|
||||
(<link linkend="language.types.integer">integer</link>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<constant>XML_ERROR_RECURSIVE_ENTITY_REF</constant>
|
||||
(<link linkend="language.types.integer">integer</link>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<constant>XML_ERROR_ASYNC_ENTITY</constant>
|
||||
(<link linkend="language.types.integer">integer</link>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<constant>XML_ERROR_BAD_CHAR_REF</constant>
|
||||
(<link linkend="language.types.integer">integer</link>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<constant>XML_ERROR_BINARY_ENTITY_REF</constant>
|
||||
(<link linkend="language.types.integer">integer</link>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<constant>XML_ERROR_ATTRIBUTE_EXTERNAL_ENTITY_REF</constant>
|
||||
(<link linkend="language.types.integer">integer</link>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<constant>XML_ERROR_MISPLACED_XML_PI</constant>
|
||||
(<link linkend="language.types.integer">integer</link>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<constant>XML_ERROR_UNKNOWN_ENCODING</constant>
|
||||
(<link linkend="language.types.integer">integer</link>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<constant>XML_ERROR_INCORRECT_ENCODING</constant>
|
||||
(<link linkend="language.types.integer">integer</link>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<constant>XML_ERROR_UNCLOSED_CDATA_SECTION</constant>
|
||||
(<link linkend="language.types.integer">integer</link>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<constant>XML_ERROR_EXTERNAL_ENTITY_HANDLING</constant>
|
||||
(<link linkend="language.types.integer">integer</link>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<constant>XML_OPTION_CASE_FOLDING</constant>
|
||||
(<link linkend="language.types.integer">integer</link>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<constant>XML_OPTION_TARGET_ENCODING</constant>
|
||||
(<link linkend="language.types.integer">integer</link>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<constant>XML_OPTION_SKIP_TAGSTART</constant>
|
||||
(<link linkend="language.types.integer">integer</link>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<constant>XML_OPTION_SKIP_WHITE</constant>
|
||||
(<link linkend="language.types.integer">integer</link>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</section>
|
||||
|
||||
<!-- 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
|
||||
sgml-default-dtd-file:"../../../manual.ced"
|
||||
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
|
||||
-->
|
||||
|
|
@ -1,41 +1,62 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<reference id="ref.xml">
|
||||
<title>XML parser functions</title>
|
||||
<titleabbrev>XML</titleabbrev>
|
||||
|
||||
<partintro>
|
||||
<section id="xml.partintro">
|
||||
<title>Introduction</title>
|
||||
<section id="xml.intro">
|
||||
<title>About XML</title>
|
||||
<para>
|
||||
XML (eXtensible Markup Language) is a data format for structured
|
||||
document interchange on the Web. It is a standard defined by
|
||||
The World Wide Web consortium (W3C). Information about XML and
|
||||
related technologies can be found at <ulink
|
||||
url="&url.xml;">&url.xml;</ulink>.
|
||||
</para>
|
||||
</section>
|
||||
<section id="xml.install">
|
||||
<title>Installation</title>
|
||||
<para>
|
||||
This extension uses <productname>expat</productname>, which can
|
||||
be found at <ulink url="&url.expat;">&url.expat;</ulink>. The
|
||||
Makefile that comes with expat does not build a library by
|
||||
default, you can use this make rule for that:
|
||||
<programlisting role="makefile">
|
||||
|
||||
<section id="xml.intro">
|
||||
&reftitle.intro;
|
||||
<para>
|
||||
XML (eXtensible Markup Language) is a data format for structured
|
||||
document interchange on the Web. It is a standard defined by
|
||||
The World Wide Web consortium (W3C). Information about XML and
|
||||
related technologies can be found at <ulink
|
||||
url="&url.xml;">&url.xml;</ulink>.
|
||||
</para>
|
||||
<para>
|
||||
This PHP extension implements support for James Clark's
|
||||
<productname>expat</productname> in PHP. This toolkit lets you
|
||||
parse, but not validate, XML documents. It supports three
|
||||
source <link linkend="xml.encoding">character encodings</link>
|
||||
also provided by PHP: <literal>US-ASCII</literal>,
|
||||
<literal>ISO-8859-1</literal> and <literal>UTF-8</literal>.
|
||||
<literal>UTF-16</literal> is not supported.
|
||||
</para>
|
||||
<para>
|
||||
This extension lets you <link
|
||||
linkend="function.xml-parser-create">create XML parsers</link>
|
||||
and then define <emphasis>handlers</emphasis> for different XML
|
||||
events. Each XML parser also has a few <link
|
||||
linkend="function.xml-parser-set-option">parameters</link> you
|
||||
can adjust.
|
||||
</para>
|
||||
</section>
|
||||
|
||||
<section id="xml.requirements">
|
||||
&reftitle.required;
|
||||
<para>
|
||||
This extension uses <productname>expat</productname>, which can
|
||||
be found at <ulink url="&url.expat;">&url.expat;</ulink>. The
|
||||
Makefile that comes with expat does not build a library by
|
||||
default, you can use this make rule for that:
|
||||
<programlisting role="makefile">
|
||||
<![CDATA[
|
||||
libexpat.a: $(OBJS)
|
||||
ar -rc $@ $(OBJS)
|
||||
ranlib $@
|
||||
]]>
|
||||
</programlisting>
|
||||
A source RPM package of expat can be found at <ulink
|
||||
url="&url.expat.rpm;">&url.expat.rpm;</ulink>.
|
||||
</para>
|
||||
</programlisting>
|
||||
A source RPM package of expat can be found at <ulink
|
||||
url="&url.expat.rpm;">&url.expat.rpm;</ulink>.
|
||||
</para>
|
||||
</section>
|
||||
|
||||
<section id="xml.installation">
|
||||
&reftitle.install;
|
||||
<para>
|
||||
Note that if you are using Apache-1.3.7 or later, you already
|
||||
If you are using Apache-1.3.7 or later, you already
|
||||
have the required expat library. Simply configure PHP using
|
||||
<option role="configure">--with-xml</option> (without any
|
||||
additional path) and it will automatically use the expat library
|
||||
|
@ -57,25 +78,20 @@ libexpat.a: $(OBJS)
|
|||
</para>
|
||||
</section>
|
||||
|
||||
<section id="xml.about">
|
||||
<title>About This Extension</title>
|
||||
<para>
|
||||
This PHP extension implements support for James Clark's
|
||||
<productname>expat</productname> in PHP. This toolkit lets you
|
||||
parse, but not validate, XML documents. It supports three
|
||||
source <link linkend="xml.encoding">character encodings</link>
|
||||
also provided by PHP: <literal>US-ASCII</literal>,
|
||||
<literal>ISO-8859-1</literal> and <literal>UTF-8</literal>.
|
||||
<literal>UTF-16</literal> is not supported.
|
||||
</para>
|
||||
<para>
|
||||
This extension lets you <link
|
||||
linkend="function.xml-parser-create">create XML parsers</link>
|
||||
and then define <emphasis>handlers</emphasis> for different XML
|
||||
events. Each XML parser also has a few <link
|
||||
linkend="function.xml-parser-set-option">parameters</link> you
|
||||
can adjust.
|
||||
</para>
|
||||
<section id="xml.configuration">
|
||||
&reftitle.runtime;
|
||||
&no.config;
|
||||
</section>
|
||||
|
||||
<section id="xml.resources">
|
||||
&reftitle.resources;
|
||||
&no.resource;
|
||||
</section>
|
||||
|
||||
&reference.xml.constants;
|
||||
|
||||
<section id="xml.eventhandlers">
|
||||
<title>Event Handlers</title>
|
||||
<para>
|
||||
The XML event handlers defined are:
|
||||
<table>
|
||||
|
@ -215,6 +231,7 @@ libexpat.a: $(OBJS)
|
|||
</simplelist>
|
||||
</para>
|
||||
</section>
|
||||
|
||||
<section id="xml.encoding">
|
||||
<title>Character Encoding</title>
|
||||
<para>
|
||||
|
@ -263,7 +280,7 @@ libexpat.a: $(OBJS)
|
|||
</section>
|
||||
|
||||
<section id="xml.examples">
|
||||
<title>Some Examples</title>
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
Here are some example PHP scripts parsing XML documents.
|
||||
</para>
|
||||
|
|
Loading…
Reference in a new issue