mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
This was actually undocumented long time ago as it caused ID collisions with ext/dom
Remove it all so we don't confuse translators git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@333295 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
eae9a2b86f
commit
cc3f882e6e
91 changed files with 0 additions and 7447 deletions
|
@ -1,62 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id='function.domattribute-name' xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomAttribute::name</refname>
|
||||
<refpurpose>
|
||||
Returns the name of attribute
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>DomAttribute::name</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Gets the name of the attribute.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
Returns the name of the attribute.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="migration">
|
||||
<title>Migrating to PHP 5</title>
|
||||
<para>
|
||||
Use the <property>name</property> property of
|
||||
<classname>DOMAttr</classname>.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
<simplelist>
|
||||
<member><xref linkend="function.domattribute-value" /> for an example</member>
|
||||
</simplelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,77 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id='function.domattribute-set-value' xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomAttribute::set_value</refname>
|
||||
<refpurpose>
|
||||
Sets the value of an attribute
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>DomAttribute::set_value</methodname>
|
||||
<methodparam><type>string</type><parameter>content</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function sets the value of an attribute.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>content</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The new value.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
&return.success;
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="migration">
|
||||
<title>Migrating to PHP 5</title>
|
||||
<para>
|
||||
Set the <property>value</property> property of
|
||||
<classname>DOMAttr</classname>.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
<simplelist>
|
||||
<member><xref linkend="function.domattribute-value" /></member>
|
||||
</simplelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,65 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id='function.domattribute-specified' xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<refnamediv>
|
||||
<refname>DomAttribute::specified</refname>
|
||||
<refpurpose>
|
||||
Checks if attribute is specified
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>DomAttribute::specified</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Checks if the attribute was explicitly given a value in the original
|
||||
document.
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
This method is not implemented yet.
|
||||
</para>
|
||||
</note>
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
&return.success;
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
<simplelist>
|
||||
<member>
|
||||
The definition of <link
|
||||
xlink:href="&url.dom1.attribute-specified;">specified</link> in the DOM
|
||||
Recommendations
|
||||
</member>
|
||||
</simplelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,100 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id='function.domattribute-value' xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomAttribute::value</refname>
|
||||
<refpurpose>
|
||||
Returns value of attribute
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>DomAttribute::value</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function returns the value of the attribute.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
<example>
|
||||
<title>Getting all the attributes of a node</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
||||
include("example.inc");
|
||||
|
||||
if (!$dom = domxml_open_mem($xmlstr)) {
|
||||
echo "Error while parsing the document\n";
|
||||
exit;
|
||||
}
|
||||
|
||||
$root = $dom->document_element();
|
||||
$attrs = $root->attributes();
|
||||
|
||||
echo 'Attributes of ' . $root->node_name() . "\n";
|
||||
foreach ($attrs as $attribute) {
|
||||
echo ' - ' . $attribute->name . ' : ' . $attribute->value . "\n";
|
||||
}
|
||||
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
Attributes of chapter
|
||||
- language : en
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
Returns the value of the attribute.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="migration">
|
||||
<title>Migrating to PHP 5</title>
|
||||
<para>
|
||||
Use the <property>value</property> property of
|
||||
<classname>DOMAttr</classname>.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
<simplelist>
|
||||
<member><xref linkend="function.domattribute-set-value" /></member>
|
||||
<member><xref linkend="function.domattribute-name" /></member>
|
||||
</simplelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,59 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.6 -->
|
||||
<refentry xml:id="function.domdocument-add-root" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomDocument::add_root</refname>
|
||||
<refpurpose>
|
||||
Adds a root node [deprecated]
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>domelement</type><methodname>DomDocument::add_root</methodname>
|
||||
<methodparam><type>string</type><parameter>name</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Adds a root element node to a dom document and returns the new node.
|
||||
The element name is given in the passed parameter.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title>Creating a simple HTML document header</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$doc = domxml_new_doc("1.0");
|
||||
$root = $doc->add_root("html");
|
||||
$head = $root->new_child("head", "");
|
||||
$head->new_child("title", "Hier der Titel");
|
||||
echo htmlentities($doc->dump_mem());
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,56 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 -->
|
||||
<refentry xml:id="function.domdocument-create-attribute" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomDocument::create_attribute</refname>
|
||||
<refpurpose>Create new attribute</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>domattribute</type><methodname>DomDocument::create_attribute</methodname>
|
||||
<methodparam><type>string</type><parameter>name</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>value</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function returns a new instance of class
|
||||
<classname>DomAttribute</classname>. The name of the attribute is the
|
||||
value of the first parameter. The value of the attribute is the value of
|
||||
the second parameter. &node.inserted;
|
||||
</para>
|
||||
<para>
|
||||
The return value is &false; if an error occurred.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domnode_append_child</function>,
|
||||
<function>domdocument_create_element</function>,
|
||||
<function>domdocument_create_text</function>,
|
||||
<function>domdocument_create_cdata_section</function>,
|
||||
<function>domdocument_create_processing_instruction</function>,
|
||||
<function>domdocument_create_entity_reference</function>, and
|
||||
<function>domnode_insert_before</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,54 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 -->
|
||||
<refentry xml:id="function.domdocument-create-cdata-section" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomDocument::create_cdata_section</refname>
|
||||
<refpurpose>Create new cdata node</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>domcdata</type><methodname>DomDocument::create_cdata_section</methodname>
|
||||
<methodparam><type>string</type><parameter>content</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function returns a new instance of class
|
||||
<classname>DomCData</classname>. The content of the cdata is the
|
||||
value of the passed parameter. &node.inserted;
|
||||
</para>
|
||||
<para>
|
||||
The return value is &false; if an error occurred.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domnode_append_child</function>,
|
||||
<function>domdocument_create_element</function>,
|
||||
<function>domdocument_create_text</function>,
|
||||
<function>domdocument_create_attribute</function>,
|
||||
<function>domdocument_create_processing_instruction</function>,
|
||||
<function>domdocument_create_entity_reference</function>, and
|
||||
<function>domnode_insert_before</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,54 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 -->
|
||||
<refentry xml:id="function.domdocument-create-comment" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomDocument::create_comment</refname>
|
||||
<refpurpose>Create new comment node</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>domcomment</type><methodname>DomDocument::create_comment</methodname>
|
||||
<methodparam><type>string</type><parameter>content</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function returns a new instance of class
|
||||
<classname>DomComment</classname>. The content of the comment is the
|
||||
value of the passed parameter. &node.inserted;
|
||||
</para>
|
||||
<para>
|
||||
The return value is &false; if an error occurred.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domnode_append_child</function>,
|
||||
<function>domdocument_create_element</function>,
|
||||
<function>domdocument_create_text</function>,
|
||||
<function>domdocument_create_attribute</function>,
|
||||
<function>domdocument_create_processing_instruction</function>,
|
||||
<function>domdocument_create_entity_reference</function>, and
|
||||
<function>domnode_insert_before</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,66 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 -->
|
||||
<refentry xml:id="function.domdocument-create-element-ns" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomDocument::create_element_ns</refname>
|
||||
<refpurpose>
|
||||
Create new element node with an associated namespace
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>domelement</type><methodname>DomDocument::create_element_ns</methodname>
|
||||
<methodparam><type>string</type><parameter>uri</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>name</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>string</type><parameter>prefix</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function returns a new instance of class
|
||||
<classname>DomElement</classname>. The tag name of the element is the
|
||||
value of the passed parameter <parameter>name</parameter>. The URI of the
|
||||
namespace is the value of the passed parameter <parameter>uri</parameter>.
|
||||
If there is already a namespace declaration with the same uri in the root-node
|
||||
of the document, the prefix of this is taken, otherwise it will take the one provided
|
||||
in the optional parameter <parameter>prefix</parameter> or generate a random one.
|
||||
&node.inserted;
|
||||
</para>
|
||||
<para>
|
||||
The return value is &false; if an error occurred.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domdocument_create_element_ns</function>,
|
||||
<function>domnode_add_namespace</function>,
|
||||
<function>domnode_set_namespace</function>,
|
||||
<function>domnode_append_child</function>,
|
||||
<function>domdocument_create_text</function>,
|
||||
<function>domdocument_create_comment</function>,
|
||||
<function>domdocument_create_attribute</function>,
|
||||
<function>domdocument_create_processing_instruction</function>,
|
||||
<function>domdocument_create_entity_reference</function>, and
|
||||
<function>domnode_insert_before</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,55 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 -->
|
||||
<refentry xml:id="function.domdocument-create-element" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomDocument::create_element</refname>
|
||||
<refpurpose>Create new element node</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>domelement</type><methodname>DomDocument::create_element</methodname>
|
||||
<methodparam><type>string</type><parameter>name</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function returns a new instance of class
|
||||
<classname>DomElement</classname>. The tag name of the element is the
|
||||
value of the passed parameter. &node.inserted;
|
||||
</para>
|
||||
<para>
|
||||
The return value is &false; if an error occurred.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domdocument_create_element_ns</function>,
|
||||
<function>domnode_append_child</function>,
|
||||
<function>domdocument_create_text</function>,
|
||||
<function>domdocument_create_comment</function>,
|
||||
<function>domdocument_create_attribute</function>,
|
||||
<function>domdocument_create_processing_instruction</function>,
|
||||
<function>domdocument_create_entity_reference</function>, and
|
||||
<function>domnode_insert_before</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,56 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 -->
|
||||
<refentry xml:id="function.domdocument-create-entity-reference" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomDocument::create_entity_reference</refname>
|
||||
<refpurpose>
|
||||
Create an entity reference
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>domentityreference</type><methodname>DomDocument::create_entity_reference</methodname>
|
||||
<methodparam><type>string</type><parameter>content</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function returns a new instance of class
|
||||
<classname>DomEntityReference</classname>. The content of the entity
|
||||
reference is the value of the passed parameter. &node.inserted;
|
||||
</para>
|
||||
<para>
|
||||
The return value is &false; if an error occurred.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domnode_append_child</function>,
|
||||
<function>domdocument_create_element</function>,
|
||||
<function>domdocument_create_text</function>,
|
||||
<function>domdocument_create_cdata_section</function>,
|
||||
<function>domdocument_create_processing_instruction</function>,
|
||||
<function>domdocument_create_attribute</function>, and
|
||||
<function>domnode_insert_before</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,55 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 -->
|
||||
<refentry xml:id="function.domdocument-create-processing-instruction" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomDocument::create_processing_instruction</refname>
|
||||
<refpurpose>Creates new PI node</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>domprocessinginstruction</type><methodname>DomDocument::create_processing_instruction</methodname>
|
||||
<methodparam><type>string</type><parameter>content</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function returns a new instance of class
|
||||
<classname>DomCData</classname>. The content of the pi is the
|
||||
value of the passed parameter.
|
||||
&node.inserted;
|
||||
</para>
|
||||
<para>
|
||||
The return value is &false; if an error occurred.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domnode_append_child</function>,
|
||||
<function>domdocument_create_element</function>,
|
||||
<function>domdocument_create_text</function>,
|
||||
<function>domdocument_create_cdata_section</function>,
|
||||
<function>domdocument_create_attribute</function>,
|
||||
<function>domdocument_create_entity_reference</function>, and
|
||||
<function>domnode_insert_before</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,56 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 -->
|
||||
<refentry xml:id="function.domdocument-create-text-node" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomDocument::create_text_node</refname>
|
||||
<refpurpose>Create new text node</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>domtext</type><methodname>DomDocument::create_text_node</methodname>
|
||||
<methodparam><type>string</type><parameter>content</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function returns a new instance of class
|
||||
<classname>DomText</classname>. The content of the text is the value of
|
||||
the passed parameter.
|
||||
&node.inserted;
|
||||
</para>
|
||||
<para>
|
||||
The return value is &false; if an error occurred.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domnode_append_child</function>,
|
||||
<function>domdocument_create_element</function>,
|
||||
<function>domdocument_create_comment</function>,
|
||||
<function>domdocument_create_text</function>,
|
||||
<function>domdocument_create_attribute</function>,
|
||||
<function>domdocument_create_processing_instruction</function>,
|
||||
<function>domdocument_create_entity_reference</function>, and
|
||||
<function>domnode_insert_before</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,48 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 -->
|
||||
<refentry xml:id="function.domdocument-doctype" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomDocument::doctype</refname>
|
||||
<refpurpose>
|
||||
Returns the document type
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>domdocumenttype</type><methodname>DomDocument::doctype</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function returns an object of class
|
||||
<classname>DomDocumentType</classname>. In versions of
|
||||
PHP before 4.3 this has been the class <classname>Dtd</classname>,
|
||||
but the DOM Standard does not know such a class.
|
||||
</para>
|
||||
<para>
|
||||
See also the methods of class <classname>DomDocumentType</classname>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,76 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.6 -->
|
||||
<refentry xml:id="function.domdocument-document-element" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomDocument::document_element</refname>
|
||||
<refpurpose>
|
||||
Returns root element node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>domelement</type><methodname>DomDocument::document_element</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function returns the root element node of a document.
|
||||
</para>
|
||||
<para>
|
||||
The following example returns just the element with name <literal>CHAPTER</literal> and
|
||||
prints it. The other node -- the comment -- is not returned.
|
||||
<example>
|
||||
<title>Retrieving root element</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
include("example.inc");
|
||||
|
||||
if (!$dom = domxml_open_mem($xmlstr)) {
|
||||
echo "Error while parsing the document\n";
|
||||
exit;
|
||||
}
|
||||
|
||||
$root = $dom->document_element();
|
||||
print_r($root);
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
domelement Object
|
||||
(
|
||||
[type] => 1
|
||||
[tagname] => chapter
|
||||
[0] => 6
|
||||
[1] => 137960648
|
||||
)
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,74 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.6 -->
|
||||
<refentry xml:id="function.domdocument-dump-file" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomDocument::dump_file</refname>
|
||||
<refpurpose>
|
||||
Dumps the internal XML tree back into a file
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>DomDocument::dump_file</methodname>
|
||||
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>bool</type><parameter>compressionmode</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>bool</type><parameter>format</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Creates an XML document from the dom representation. This function
|
||||
usually is called after building a new dom document from scratch
|
||||
as in the example below. The
|
||||
<parameter>format</parameter> specifies whether the output should be
|
||||
neatly formatted, or not. The first parameter specifies the name of the
|
||||
filename and the second parameter, whether it should be compressed or not.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title>Creating a simple HTML document header</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$doc = domxml_new_doc("1.0");
|
||||
$root = $doc->create_element("HTML");
|
||||
$root = $doc->append_child($root);
|
||||
$head = $doc->create_element("HEAD");
|
||||
$head = $root->append_child($head);
|
||||
$title = $doc->create_element("TITLE");
|
||||
$title = $head->append_child($title);
|
||||
$text = $doc->create_text_node("This is the title");
|
||||
$text = $title->append_child($text);
|
||||
$doc->dump_file("/tmp/test.xml", false, true);
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domdocument_dump_mem</function>, and
|
||||
<function>domdocument_html_dump_mem</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,79 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.6 -->
|
||||
<refentry xml:id="function.domdocument-dump-mem" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomDocument::dump_mem</refname>
|
||||
<refpurpose>
|
||||
Dumps the internal XML tree back into a string
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>DomDocument::dump_mem</methodname>
|
||||
<methodparam choice="opt"><type>bool</type><parameter>format</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>string</type><parameter>encoding</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Creates an XML document from the dom representation. This function
|
||||
usually is called after building a new dom document from scratch
|
||||
as in the example below. The
|
||||
<parameter>format</parameter> specifies whether the output should be
|
||||
neatly formatted, or not.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title>Creating a simple HTML document header</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$doc = domxml_new_doc("1.0");
|
||||
$root = $doc->create_element("HTML");
|
||||
$root = $doc->append_child($root);
|
||||
$head = $doc->create_element("HEAD");
|
||||
$head = $root->append_child($head);
|
||||
$title = $doc->create_element("TITLE");
|
||||
$title = $head->append_child($title);
|
||||
$text = $doc->create_text_node("This is the title");
|
||||
$text = $title->append_child($text);
|
||||
echo "<PRE>";
|
||||
echo htmlentities($doc->dump_mem(true));
|
||||
echo "</PRE>";
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
The first parameter was added in PHP 4.3.0.
|
||||
</para>
|
||||
</note>
|
||||
<para>
|
||||
See also <function>domdocument_dump_file</function>, and
|
||||
<function>domdocument_html_dump_mem</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,52 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 -->
|
||||
<refentry xml:id="function.domdocument-get-element-by-id" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomDocument::get_element_by_id</refname>
|
||||
<refpurpose>
|
||||
Searches for an element with a certain id
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>domelement</type><methodname>DomDocument::get_element_by_id</methodname>
|
||||
<methodparam><type>string</type><parameter>id</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function is similar to
|
||||
<function>domdocument_get_elements_by_tagname</function> but searches for
|
||||
an element with a given id. According to the DOM standard this requires a
|
||||
DTD which defines the attribute ID to be of type ID, though the current
|
||||
implementation simply does an xpath search for <literal>"//*[@ID = '%s']"</literal>. This
|
||||
does not comply to the DOM standard which requires to return null if it
|
||||
is not known which attribute is of type id. This behaviour is likely to
|
||||
be fixed, so do not rely on the current behaviour.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domdocument_get_elements_by_tagname</function>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,44 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 -->
|
||||
<refentry xml:id="function.domdocument-get-elements-by-tagname" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomDocument::get_elements_by_tagname</refname>
|
||||
<refpurpose>
|
||||
Returns array with nodes with given tagname in document or empty array, if not found
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>array</type><methodname>DomDocument::get_elements_by_tagname</methodname>
|
||||
<methodparam><type>string</type><parameter>name</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domdocument_add_root</function>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,82 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.6 -->
|
||||
<refentry xml:id="function.domdocument-html-dump-mem" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomDocument::html_dump_mem</refname>
|
||||
<refpurpose>
|
||||
Dumps the internal XML tree back into a string as HTML
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>DomDocument::html_dump_mem</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Creates an HTML document from the dom representation. This function
|
||||
usually is called after building a new dom document from scratch
|
||||
as in the example below.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title>Creating a simple HTML document header</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
||||
// Creates the document
|
||||
$doc = domxml_new_doc("1.0");
|
||||
|
||||
$root = $doc->create_element("html");
|
||||
$root = $doc->append_child($root);
|
||||
|
||||
$head = $doc->create_element("head");
|
||||
$head = $root->append_child($head);
|
||||
|
||||
$title = $doc->create_element("title");
|
||||
$title = $head->append_child($title);
|
||||
|
||||
$text = $doc->create_text_node("This is the title");
|
||||
$text = $title->append_child($text);
|
||||
|
||||
echo $doc->html_dump_mem();
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
&example.outputs;
|
||||
<screen role="xml">
|
||||
<![CDATA[
|
||||
<html><head><title>This is the title</title></head></html>
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domdocument_dump_file</function>, and
|
||||
<function>domdocument_html_dump_mem</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,91 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id="function.domdocument-xinclude" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<refnamediv>
|
||||
<refname>DomDocument::xinclude</refname>
|
||||
<refpurpose>
|
||||
Substitutes XIncludes in a DomDocument Object
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>int</type><methodname>DomDocument::xinclude</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function substitutes <link
|
||||
xlink:href="&url.xinclude.spec;">XIncludes</link> in a DomDocument object.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title>Substituting Xincludes</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
||||
// include.xml contains :
|
||||
// <child>test</child>
|
||||
|
||||
$xml = '<?xml version="1.0"?>
|
||||
<root xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||
<xi:include href="include.xml">
|
||||
<xi:fallback>
|
||||
<error>xinclude: include.xml not found</error>
|
||||
</xi:fallback>
|
||||
</xi:include>
|
||||
</root>';
|
||||
|
||||
$domxml = domxml_open_mem($xml);
|
||||
$domxml->xinclude();
|
||||
|
||||
echo $domxml->dump_mem();
|
||||
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
&example.outputs;
|
||||
<screen role="xml">
|
||||
<![CDATA[
|
||||
<?xml version="1.0"?>
|
||||
<root xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||
<child>test</child>
|
||||
</root>
|
||||
]]>
|
||||
</screen>
|
||||
<para>
|
||||
If <filename>include.xml</filename> doesn't exist, you'll see:
|
||||
</para>
|
||||
<screen role="xml">
|
||||
<![CDATA[
|
||||
<?xml version="1.0"?>
|
||||
<root xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||
<error>xinclude:dom.xml not found</error>
|
||||
</root>
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,48 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id='function.domdocumenttype-entities' xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomDocumentType::entities</refname>
|
||||
<refpurpose>
|
||||
Returns list of entities
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>array</type><methodname>DomDocumentType::entities</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
&warn.undocumented.func;
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="migration">
|
||||
<title>Migrating to PHP 5</title>
|
||||
<para>
|
||||
Use the <property>entities</property> property of the
|
||||
<classname>DOMDocumentType</classname> object.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,48 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id='function.domdocumenttype-internal-subset' xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomDocumentType::internal_subset</refname>
|
||||
<refpurpose>
|
||||
Returns internal subset
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>DomDocumentType::internal_subset</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
&warn.undocumented.func;
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="migration">
|
||||
<title>Migrating to PHP 5</title>
|
||||
<para>
|
||||
Use the <property>internalSubset</property> property of the
|
||||
<classname>DOMDocumentType</classname> object.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,80 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id='function.domdocumenttype-name' xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomDocumentType::name</refname>
|
||||
<refpurpose>
|
||||
Returns name of document type
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>DomDocumentType::name</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function returns the name of the document type.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
Returns the name of the <classname>DomDocumentType</classname>, as a
|
||||
string.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
<example>
|
||||
<title>Getting the document type's name</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
||||
include("example.inc");
|
||||
|
||||
if (!$dom = domxml_open_mem($xmlstr)) {
|
||||
echo "Error while parsing the document\n";
|
||||
exit;
|
||||
}
|
||||
|
||||
$doctype = $dom->doctype();
|
||||
echo $doctype->name(); // chapter
|
||||
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="migration">
|
||||
<title>Migrating to PHP 5</title>
|
||||
<para>
|
||||
Use the <property>name</property> property of the
|
||||
<classname>DOMDocumentType</classname> object.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,48 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id='function.domdocumenttype-notations' xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomDocumentType::notations</refname>
|
||||
<refpurpose>
|
||||
Returns list of notations
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>array</type><methodname>DomDocumentType::notations</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
&warn.undocumented.func;
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="migration">
|
||||
<title>Migrating to PHP 5</title>
|
||||
<para>
|
||||
Use the <property>notations</property> property of the
|
||||
<classname>DOMDocumentType</classname> object.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,79 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id='function.domdocumenttype-public-id' xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomDocumentType::public_id</refname>
|
||||
<refpurpose>
|
||||
Returns public id of document type
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>DomDocumentType::public_id</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function returns the public id of the document type.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
Returns the public id of the <classname>DomDocumentType</classname>, as a
|
||||
string.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
The following example echos nothing.
|
||||
<example>
|
||||
<title>Retrieving the public id</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
include("example.inc");
|
||||
|
||||
if (!$dom = domxml_open_mem($xmlstr)) {
|
||||
echo "Error while parsing the document\n";
|
||||
exit;
|
||||
}
|
||||
|
||||
$doctype = $dom->doctype();
|
||||
echo $doctype->public_id();
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="migration">
|
||||
<title>Migrating to PHP 5</title>
|
||||
<para>
|
||||
Use the <property>publicId</property> property of the
|
||||
<classname>DOMDocumentType</classname> object.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,84 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id='function.domdocumenttype-system-id' xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomDocumentType::system_id</refname>
|
||||
<refpurpose>
|
||||
Returns the system id of document type
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>DomDocumentType::system_id</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Returns the system id of the document type.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
Returns the system id of the <classname>DomDocumentType</classname>, as a
|
||||
string.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
<example>
|
||||
<title>Retrieving the system id</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
include("example.inc");
|
||||
|
||||
if (!$dom = domxml_open_mem($xmlstr)) {
|
||||
echo "Error while parsing the document\n";
|
||||
exit;
|
||||
}
|
||||
|
||||
$doctype = $dom->doctype();
|
||||
echo $doctype->system_id();
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
/share/sgml/Norman_Walsh/db3xml10/db3xml10.dtd
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="migration">
|
||||
<title>Migrating to PHP 5</title>
|
||||
<para>
|
||||
Use the <property>systemId</property> property of the
|
||||
<classname>DOMDocumentType</classname> object.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,106 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id='function.domelement-get-attribute-node' xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomElement::get_attribute_node</refname>
|
||||
<refpurpose>
|
||||
Returns the node of the given attribute
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>DomAttribute</type><methodname>DomElement::get_attribute_node</methodname>
|
||||
<methodparam><type>string</type><parameter>name</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Returns the node of the given attribute in the current element.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>name</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The name of the seeked attribute. This parameter is case sensitive.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
Returns the node of the attribute as a <classname>DomAttribute</classname>
|
||||
or &false; if no attribute with the given <parameter>name</parameter> is
|
||||
found.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
<example>
|
||||
<title>Getting an attribute node</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
||||
include("example.inc");
|
||||
|
||||
if (!$dom = domxml_open_mem($xmlstr)) {
|
||||
echo "Error while parsing the document\n";
|
||||
exit;
|
||||
}
|
||||
|
||||
$root = $dom->document_element();
|
||||
if ($attribute = $root->get_attribute_node('language')) {
|
||||
echo 'Language is: ' . $attribute->value() . "\n";
|
||||
}
|
||||
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="migration">
|
||||
<title>Migrating to PHP 5</title>
|
||||
<para>
|
||||
Use <xref linkend="domelement.getattributenode" />.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
<simplelist>
|
||||
<member><xref linkend="function.domelement-get-attribute" /></member>
|
||||
<member><xref linkend="function.domelement-set-attribute" /></member>
|
||||
</simplelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,108 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id='function.domelement-get-attribute' xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomElement::get_attribute</refname>
|
||||
<refpurpose>
|
||||
Returns the value of the given attribute
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>DomElement::get_attribute</methodname>
|
||||
<methodparam><type>string</type><parameter>name</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Returns the value of the given attribute in the current element.
|
||||
</para>
|
||||
<para>
|
||||
Since PHP 4.3, if no attribute with given <parameter>name</parameter> is
|
||||
found, an empty string is returned.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>name</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The name of the seeked attribute. This parameter is case sensitive.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
Returns the value of the attribute as a string or an empty string if no
|
||||
attribute with the given <parameter>name</parameter> is found.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
<example>
|
||||
<title>Getting the value of an attribute</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
||||
include("example.inc");
|
||||
|
||||
if (!$dom = domxml_open_mem($xmlstr)) {
|
||||
echo "Error while parsing the document\n";
|
||||
exit;
|
||||
}
|
||||
|
||||
// get chapter
|
||||
$root = $dom->document_element();
|
||||
echo $root->get_attribute('language'); // en
|
||||
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="migration">
|
||||
<title>Migrating to PHP 5</title>
|
||||
<para>
|
||||
Use <xref linkend="domelement.getattribute" />.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
<simplelist>
|
||||
<member><xref linkend="function.domelement-get-attribute-node" /></member>
|
||||
<member><xref linkend="function.domelement-set-attribute" /></member>
|
||||
</simplelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,96 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id='function.domelement-get-elements-by-tagname' xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomElement::get_elements_by_tagname</refname>
|
||||
<refpurpose>
|
||||
Gets elements by tagname
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>array</type><methodname>DomElement::get_elements_by_tagname</methodname>
|
||||
<methodparam><type>string</type><parameter>name</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Gets all the sub elements with the specific <parameter>name</parameter>
|
||||
within the current element.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>name</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The name of the seeked element.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
Returns an array of <classname>DomElement</classname> objects.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
<example>
|
||||
<title>Getting a content</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
if (!$dom = domxml_open_mem($xmlstr)) {
|
||||
echo "Error while parsing the document\n";
|
||||
exit;
|
||||
}
|
||||
|
||||
$root = $dom->document_element();
|
||||
|
||||
$node_array = $root->get_elements_by_tagname('element');
|
||||
|
||||
foreach ($node_array as $node) {
|
||||
echo ' - ' . $node->get_content() . "\n";
|
||||
}
|
||||
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="migration">
|
||||
<title>Migrating to PHP 5</title>
|
||||
<para>
|
||||
Use <xref linkend="domelement.getelementsbytagname" />.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,100 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id='function.domelement-has-attribute' xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomElement::has_attribute</refname>
|
||||
<refpurpose>
|
||||
Checks to see if an attribute exists in the current node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>DomElement::has_attribute</methodname>
|
||||
<methodparam><type>string</type><parameter>name</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This functions checks to see if an attribute named
|
||||
<parameter>name</parameter> exists in the current node.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>name</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The name of the tested attribute.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
Returns &true; if the asked attribute exists, &false; otherwise.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
<example>
|
||||
<title>Testing the existence of an attribute</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
||||
include("example.inc");
|
||||
|
||||
if (!$dom = domxml_open_mem($xmlstr)) {
|
||||
echo "Error while parsing the document\n";
|
||||
exit;
|
||||
}
|
||||
|
||||
$root = $dom->document_element();
|
||||
|
||||
$buffer = '<html';
|
||||
if ($root->has_attribute('language')) {
|
||||
$buffer .= 'lang="' . $root->get_attribute('language') . '"';
|
||||
}
|
||||
$buffer .= '>';
|
||||
|
||||
?>
|
||||
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="migration">
|
||||
<title>Migrating to PHP 5</title>
|
||||
<para>
|
||||
Use <xref linkend="domelement.hasattribute" />.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,69 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id='function.domelement-remove-attribute' xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomElement::remove_attribute</refname>
|
||||
<refpurpose>
|
||||
Removes attribute
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>DomElement::remove_attribute</methodname>
|
||||
<methodparam><type>string</type><parameter>name</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Removes an attribute from the current <classname>DomElement</classname>
|
||||
node.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>name</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The name of the attribute to remove.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
&return.success;
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="migration">
|
||||
<title>Migrating to PHP 5</title>
|
||||
<para>
|
||||
Use <xref linkend="domelement.removeattribute" />.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,40 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id='function.domelement-set-attribute-node' xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomElement::set_attribute_node</refname>
|
||||
<refpurpose>
|
||||
Adds new attribute
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>DomNode</type><methodname>DomElement::set_attribute_node</methodname>
|
||||
<methodparam><type>DomNode</type><parameter>attr</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
&warn.undocumented.func;
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
<!-- 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:"~/.phpdoc/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,107 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id='function.domelement-set-attribute' xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomElement::set_attribute</refname>
|
||||
<refpurpose>
|
||||
Sets the value of an attribute
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>DomAttribute</type><methodname>DomElement::set_attribute</methodname>
|
||||
<methodparam><type>string</type><parameter>name</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>value</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Sets an attribute with name <parameter>name</parameter> to the given
|
||||
<parameter>value</parameter>.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>name</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The name of the attribute. If this attribute doesn't exist, it will be
|
||||
created.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>value</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The value of the attribute.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
Returns the old <classname>DomAttribute</classname> node, or the new one
|
||||
if you are creating the attribute for the first time.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
<example>
|
||||
<title>Setting an attribute</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$doc = domxml_new_doc("1.0");
|
||||
$node = $doc->create_element("para");
|
||||
$newnode = $doc->append_child($node);
|
||||
$newnode->set_attribute("align", "left");
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="migration">
|
||||
<title>Migrating to PHP 5</title>
|
||||
<para>
|
||||
Use <xref linkend="domelement.setattribute" />.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
<simplelist>
|
||||
<member><xref linkend="function.domelement-get-attribute-node" /></member>
|
||||
<member><xref linkend="function.domelement-get-attribute" /></member>
|
||||
</simplelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,85 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id='function.domelement-tagname' xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomElement::tagname</refname>
|
||||
<refpurpose>
|
||||
Returns the name of the current element
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>DomElement::tagname</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Returns the name of the current node. Calling this function is the same
|
||||
as accessing the <property>tagname</property> property, or calling
|
||||
<xref linkend="function.domnode-node-name" /> on the current node.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
Returns the name of the current <classname>DomElement</classname> node.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
<example>
|
||||
<title>Getting the node name</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
||||
include("example.inc");
|
||||
|
||||
if (!$dom = domxml_open_mem($xmlstr)) {
|
||||
echo "Error while parsing the document\n";
|
||||
exit;
|
||||
}
|
||||
|
||||
$root = $dom->document_element();
|
||||
echo $root->tagname(); // chapter
|
||||
echo $root->tagname; // chapter
|
||||
echo $root->node_name(); // chapter
|
||||
|
||||
|
||||
?>
|
||||
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="migration">
|
||||
<title>Migrating to PHP 5</title>
|
||||
<para>
|
||||
Use the <property>tagName</property> property of the
|
||||
<classname>DOMElement</classname> object.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,100 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id='function.domnode-add-namespace' xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomNode::add_namespace</refname>
|
||||
<refpurpose>
|
||||
Adds a namespace declaration to a node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>DOMNode::add_namespace</methodname>
|
||||
<methodparam><type>string</type><parameter>uri</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>prefix</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This method adds a namespace declaration to a node.
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
This method is not part of the DOM specification.
|
||||
</para>
|
||||
</note>
|
||||
</refsect1>
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>uri</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The namespace URI of the node.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>prefix</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The namespace prefix of the node.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
&return.success;
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="migration">
|
||||
<title>Migrating to PHP 5</title>
|
||||
<para>
|
||||
You can set the namespace URI and prefix of a <classname>DOMElement</classname>
|
||||
or a <classname>DOMAttr</classname> at creation time by using
|
||||
<xref linkend='domdocument.createelementns' /> or
|
||||
<xref linkend='domdocument.createattributens' />.
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
Remember the an attribute does not inherit its namespace from the element
|
||||
it is attached to.
|
||||
</para>
|
||||
</note>
|
||||
</refsect1>
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
<simplelist>
|
||||
<member><xref linkend="function.domdocument-create-element-ns" /></member>
|
||||
<member><xref linkend="function.domnode-set-namespace" /></member>
|
||||
</simplelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,223 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id='function.domnode-append-child' xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomNode::append_child</refname>
|
||||
<refpurpose>
|
||||
Adds a new child at the end of the children
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>DOMNode</type><methodname>DOMNode::append_child</methodname>
|
||||
<methodparam><type>DOMNode</type><parameter>newnode</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This functions appends a child to an existing list of children or creates
|
||||
a new list of children.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>newnode</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The node being appended. It can be created with e.g.
|
||||
<xref linkend="function.domdocument-create-element" />,
|
||||
<xref linkend="function.domdocument-create-text-node" /> etc. or
|
||||
simply by using any other node.
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
You can not append a <classname>DOMAttribute</classname> using this
|
||||
method. Use <xref linkend="function.domelement-set-attribute" />
|
||||
instead.
|
||||
</para>
|
||||
</note>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
Returns the appended node on success&return.falseforfailure;.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="changelog">
|
||||
&reftitle.changelog;
|
||||
<para>
|
||||
<informaltable>
|
||||
<tgroup cols="2">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>&Version;</entry>
|
||||
<entry>&Description;</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>4.3.0</entry>
|
||||
<entry>
|
||||
You are not allowed anymore to insert a node from another document.
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>4.3.0</entry>
|
||||
<entry>
|
||||
Prior to PHP 4.3.0, the new child is duplicated before being
|
||||
appended.
|
||||
Therefore the new child is a completely new copy which can be
|
||||
modified without changing the node which was passed to this function.
|
||||
If the node passed has children itself, they will be duplicated as
|
||||
well, which makes it quite easy to duplicate large parts of an XML
|
||||
document. The return value is the appended child. If you plan to do
|
||||
further modifications on the appended child you must use the returned
|
||||
node.
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>4.3.0 and 4.3.1</entry>
|
||||
<entry>
|
||||
The new child <parameter>newnode</parameter> is first unlinked from
|
||||
its existing context, if it's already a child of DomNode. Therefore
|
||||
the <parameter>newnode</parameter> is moved and not copies anymore.
|
||||
This is the behaviour according to the W3C specifications. If you
|
||||
need the old behaviour, use <xref
|
||||
linkend="function.domnode-clone-node" /> before appending.
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>4.3.2</entry>
|
||||
<entry>
|
||||
The new child <parameter>newnode</parameter> is first unlinked from
|
||||
its existing context, if it's already in the tree. Same rules apply.
|
||||
</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</informaltable>
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
The following example adds a new element node to a fresh document and sets
|
||||
the attribute <literal>align</literal> to <literal>left</literal>.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title>Adding a child</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$doc = domxml_new_doc("1.0");
|
||||
$node = $doc->create_element("para");
|
||||
$newnode = $doc->append_child($node);
|
||||
$newnode->set_attribute("align", "left");
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
The above example could also be written as the following:
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title>Adding a child</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$doc = domxml_new_doc("1.0");
|
||||
$node = $doc->create_element("para");
|
||||
$node->set_attribute("align", "left");
|
||||
$newnode = $doc->append_child($node);
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
A more complex example is the one below. It first searches for a certain
|
||||
element, duplicates it including its children and adds it as a sibling.
|
||||
Finally a new attribute is added to one of the children of the new sibling
|
||||
and the whole document is dumped.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title>Adding a child</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
include("example.inc");
|
||||
|
||||
if (!$dom = domxml_open_mem($xmlstr)) {
|
||||
echo "Error while parsing the document\n";
|
||||
exit;
|
||||
}
|
||||
|
||||
$elements = $dom->get_elements_by_tagname("informaltable");
|
||||
print_r($elements);
|
||||
$element = $elements[0];
|
||||
|
||||
$parent = $element->parent_node();
|
||||
$newnode = $parent->append_child($element);
|
||||
$children = $newnode->children();
|
||||
$attr = $children[1]->set_attribute("align", "left");
|
||||
|
||||
$xmlfile = $dom->dump_mem();
|
||||
echo htmlentities($xmlfile);
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
The above example could also be done with
|
||||
<xref linkend="function.domnode-insert-before" /> instead of
|
||||
<xref linkend="function.domnode-append-child" />.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="migration">
|
||||
<title>Migrating to PHP 5</title>
|
||||
<para>
|
||||
You should use <xref linkend='domnode.appendchild' />.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
<simplelist>
|
||||
<member><xref linkend="function.domnode-insert-before" /></member>
|
||||
<member><xref linkend="function.domnode-clone-node" /></member>
|
||||
</simplelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,61 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id='function.domnode-append-sibling' xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomNode::append_sibling</refname>
|
||||
<refpurpose>
|
||||
Adds new sibling to a node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>domelement</type><methodname>DomNode::append_sibling</methodname>
|
||||
<methodparam><type>domelement</type><parameter>newnode</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This functions appends a sibling to an existing node.
|
||||
The child can be created with e.g.
|
||||
<function>domdocument_create_element</function>,
|
||||
<function>domdocument_create_text</function> etc. or simply by using any
|
||||
other node.
|
||||
</para>
|
||||
<para>
|
||||
Before a new sibling is added it is first duplicated. Therefore the new
|
||||
child is a completely new copy which can be modified without changing the
|
||||
node which was passed to this function. If the node passed has children
|
||||
itself, they will be duplicated as well, which makes it quite easy to
|
||||
duplicate large parts of an XML document. The return value is the
|
||||
added sibling. If you plan to do further modifications on the added
|
||||
sibling you must use the returned node.
|
||||
</para>
|
||||
<para>
|
||||
This function has been added to provide the behaviour of
|
||||
<function>domnode_append_child</function> as it works till PHP 4.2.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domnode_append_before</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,45 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id='function.domnode-attributes' xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomNode::attributes</refname>
|
||||
<refpurpose>
|
||||
Returns list of attributes
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>array</type><methodname>DomNode::attributes</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function only returns an array of attributes if the node is of
|
||||
type <constant>XML_ELEMENT_NODE</constant>.
|
||||
</para>
|
||||
<para>
|
||||
(PHP >= 4.3 only) If no attributes are found, NULL is returned.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,45 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id='function.domnode-child-nodes' xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomNode::child_nodes</refname>
|
||||
<refpurpose>
|
||||
Returns children of node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>array</type><methodname>DomNode::child_nodes</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Returns all children of the node.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domnode_next_sibling</function>, and
|
||||
<function>domnode_previous_sibling</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id='function.domnode-clone-node' xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomNode::clone_node</refname>
|
||||
<refpurpose>
|
||||
Clones a node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>domelement</type><methodname>DomNode::clone_node</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
&warn.undocumented.func;
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,44 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id='function.domnode-dump-node' xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomNode::dump_node</refname>
|
||||
<refpurpose>
|
||||
Dumps a single node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>DomNode::dump_node</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
&warn.undocumented.func;
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domdocument_dump_mem</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,49 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id='function.domnode-first-child' xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomNode::first_child</refname>
|
||||
<refpurpose>
|
||||
Returns first child of node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>domelement</type><methodname>DomNode::first_child</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Returns the first child of the node.
|
||||
</para>
|
||||
<para>
|
||||
(PHP >= 4.3 only) If no first child is found, NULL is returned.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domnode_last_child</function>, and
|
||||
<function>domnode_next_sibling</function>,
|
||||
<function>domnode_previous_sibling</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,66 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id='function.domnode-get-content' xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomNode::get_content</refname>
|
||||
<refpurpose>
|
||||
Gets content of node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>DomNode::get_content</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function returns the content of the actual node.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title>Getting a content</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
if (!$dom = domxml_open_mem($xmlstr)) {
|
||||
echo "Error while parsing the document\n";
|
||||
exit;
|
||||
}
|
||||
|
||||
$root = $dom->document_element();
|
||||
|
||||
$node_array = $root->get_elements_by_tagname("element");
|
||||
|
||||
for ($i = 0; $i<count($node_array); $i++) {
|
||||
$node = $node_array[$i];
|
||||
echo "The element[$i] is: " . $node->get_content();
|
||||
}
|
||||
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,44 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id='function.domnode-has-attributes' xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomNode::has_attributes</refname>
|
||||
<refpurpose>
|
||||
Checks if node has attributes
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>DomNode::has_attributes</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function checks if the node has attributes.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domnode_has_child_nodes</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,44 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id='function.domnode-has-child-nodes' xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomNode::has_child_nodes</refname>
|
||||
<refpurpose>
|
||||
Checks if node has children
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>DomNode::has_child_nodes</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function checks if the node has children.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domnode_child_nodes</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,90 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id='function.domnode-insert-before' xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomNode::insert_before</refname>
|
||||
<refpurpose>
|
||||
Inserts new node as child
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>domelement</type><methodname>DomNode::insert_before</methodname>
|
||||
<methodparam><type>domelement</type><parameter>newnode</parameter></methodparam>
|
||||
<methodparam><type>domelement</type><parameter>refnode</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function inserts the new node <parameter>newnode</parameter> right
|
||||
before the node <parameter>refnode</parameter>. The return value is the
|
||||
inserted node. If you plan to do further modifications on the appended
|
||||
child you must use the returned node.
|
||||
</para>
|
||||
<para>
|
||||
(PHP >= 4.3 only) If <parameter>newnode</parameter> already is part of a
|
||||
document, it will be first unlinked from its existing context. If
|
||||
<parameter>refnode</parameter> is NULL, then <parameter>newnode</parameter>
|
||||
will be inserted at the end of the list of children.
|
||||
</para>
|
||||
<para>
|
||||
<function>domnode_insert_before</function> is very similar to
|
||||
<function>domnode_append_child</function> as the following example shows
|
||||
which does the same as the example at
|
||||
<function>domnode_append_child</function>.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title>Adding a child</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
include("example.inc");
|
||||
|
||||
if (!$dom = domxml_open_mem($xmlstr)) {
|
||||
echo "Error while parsing the document\n";
|
||||
exit;
|
||||
}
|
||||
|
||||
$elements = $dom->get_elements_by_tagname("informaltable");
|
||||
print_r($elements);
|
||||
$element = $elements[0];
|
||||
|
||||
$newnode = $element->insert_before($element, $element);
|
||||
$children = $newnode->children();
|
||||
$attr = $children[1]->set_attribute("align", "left");
|
||||
|
||||
echo "<pre>";
|
||||
$xmlfile = $dom->dump_mem();
|
||||
echo htmlentities($xmlfile);
|
||||
echo "</pre>";
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domnode_append_child</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id='function.domnode-is-blank-node' xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomNode::is_blank_node</refname>
|
||||
<refpurpose>
|
||||
Checks if node is blank
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>DomNode::is_blank_node</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
&warn.undocumented.func;
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,49 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id='function.domnode-last-child' xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomNode::last_child</refname>
|
||||
<refpurpose>
|
||||
Returns last child of node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>domelement</type><methodname>DomNode::last_child</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Returns the last child of the node.
|
||||
</para>
|
||||
<para>
|
||||
(PHP >= 4.3 only) If no last child is found, NULL is returned.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domnode_first_child</function>, and
|
||||
<function>domnode_next_sibling</function>,
|
||||
<function>domnode_previous_sibling</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,73 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id='function.domnode-next-sibling' xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomNode::next_sibling</refname>
|
||||
<refpurpose>
|
||||
Returns the next sibling of node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>domelement</type><methodname>DomNode::next_sibling</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function returns the next sibling of the current node. If there is
|
||||
no next sibling it returns &false; (< 4.3) or null (>= 4.3). You can
|
||||
use this function to iterate over all children of a node as shown in the
|
||||
example.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title>Iterate over children</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
include("example.inc");
|
||||
|
||||
if (!$dom = domxml_open_mem($xmlstr)) {
|
||||
echo "Error while parsing the document\n";
|
||||
exit;
|
||||
}
|
||||
|
||||
$elements = $dom->get_elements_by_tagname("tbody");
|
||||
$element = $elements[0];
|
||||
$child = $element->first_child();
|
||||
|
||||
while ($child) {
|
||||
print_r($child);
|
||||
$child = $child->next_sibling();
|
||||
}
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domnode_previous_sibling</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,103 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id='function.domnode-node-name' xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomNode::node_name</refname>
|
||||
<refpurpose>
|
||||
Returns name of node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>DomNode::node_name</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Returns name of the node. The name has different meanings
|
||||
for the different types of nodes as illustrated in the following table.
|
||||
<table>
|
||||
<title>Meaning of value</title>
|
||||
<tgroup cols="2">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>Type</entry>
|
||||
<entry>Meaning</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>DomAttribute</entry>
|
||||
<entry>value of attribute</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomAttribute</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomCDataSection</entry>
|
||||
<entry>#cdata-section</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomComment</entry>
|
||||
<entry>#comment</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomDocument</entry>
|
||||
<entry>#document</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomDocumentType</entry>
|
||||
<entry>document type name</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomElement</entry>
|
||||
<entry>tag name</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomEntity</entry>
|
||||
<entry>name of entity</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomEntityReference</entry>
|
||||
<entry>name of entity reference</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomNotation</entry>
|
||||
<entry>notation name</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomProcessingInstruction</entry>
|
||||
<entry>target</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomText</entry>
|
||||
<entry>#text</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,72 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id='function.domnode-node-type' xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomNode::node_type</refname>
|
||||
<refpurpose>
|
||||
Returns type of node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>int</type><methodname>DomNode::node_type</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Returns the type of the node. All possible types are listed in
|
||||
the table in the introduction.
|
||||
</para>
|
||||
<example>
|
||||
<title></title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
||||
include 'example.inc';
|
||||
|
||||
$dom = domxml_open_mem($xmlstr);
|
||||
|
||||
$chapter = $dom->document_element();
|
||||
|
||||
// Let's see the elements contained in chapter
|
||||
foreach($chapter->child_nodes() as $node) {
|
||||
if ($node->node_type() == XML_ELEMENT_NODE) {
|
||||
echo $node->node_name() . "\n";
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
title
|
||||
para
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,103 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id='function.domnode-node-value' xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomNode::node_value</refname>
|
||||
<refpurpose>
|
||||
Returns value of a node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>DomNode::node_value</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Returns value of the node. The value has different meanings
|
||||
for the different types of nodes as illustrated in the following table.
|
||||
<table>
|
||||
<title>Meaning of value</title>
|
||||
<tgroup cols="2">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>Type</entry>
|
||||
<entry>Meaning</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>DomAttribute</entry>
|
||||
<entry>value of attribute</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomAttribute</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomCDataSection</entry>
|
||||
<entry>content</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomComment</entry>
|
||||
<entry>content of comment</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomDocument</entry>
|
||||
<entry>null</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomDocumentType</entry>
|
||||
<entry>null</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomElement</entry>
|
||||
<entry>null</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomEntity</entry>
|
||||
<entry>null</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomEntityReference</entry>
|
||||
<entry>null</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomNotation</entry>
|
||||
<entry>null</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomProcessingInstruction</entry>
|
||||
<entry>entire content without target</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomText</entry>
|
||||
<entry>content of text</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,65 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id='function.domnode-owner-document' xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomNode::owner_document</refname>
|
||||
<refpurpose>
|
||||
Returns the document this node belongs to
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>domdocument</type><methodname>DomNode::owner_document</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function returns the document the current node belongs to.
|
||||
</para>
|
||||
<para>
|
||||
The following example will create two identical lists of children.
|
||||
<example>
|
||||
<title>Finding the document of a node</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$doc = domxml_new_doc("1.0");
|
||||
$node = $doc->create_element("para");
|
||||
$node = $doc->append_child($node);
|
||||
$children = $doc->children();
|
||||
print_r($children);
|
||||
|
||||
$doc2 = $node->owner_document();
|
||||
$children = $doc2->children();
|
||||
print_r($children);
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domnode_insert_before</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,65 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id='function.domnode-parent-node' xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomNode::parent_node</refname>
|
||||
<refpurpose>
|
||||
Returns the parent of the node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>domnode</type><methodname>DomNode::parent_node</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function returns the parent node.
|
||||
</para>
|
||||
<para>
|
||||
(PHP >= 4.3 only) If no parent is found, NULL is returned.
|
||||
</para>
|
||||
<para>
|
||||
The following example will show two identical lists of children.
|
||||
<example>
|
||||
<title>Finding the document of a node</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$doc = domxml_new_doc("1.0");
|
||||
$node = $doc->create_element("para");
|
||||
$node = $doc->append_child($node);
|
||||
$children = $doc->children();
|
||||
print_r($children);
|
||||
|
||||
$doc2 = $node->parent_node();
|
||||
$children = $doc2->children();
|
||||
print_r($children);
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id='function.domnode-prefix' xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomNode::prefix</refname>
|
||||
<refpurpose>
|
||||
Returns name space prefix of node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>DomNode::prefix</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Returns the name space prefix of the node.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,47 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id='function.domnode-previous-sibling' xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomNode::previous_sibling</refname>
|
||||
<refpurpose>
|
||||
Returns the previous sibling of node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>domelement</type><methodname>DomNode::previous_sibling</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function returns the previous sibling of the current node. If there
|
||||
is no previous sibling it returns &false; (< 4.3) or &null; (>= 4.3). You
|
||||
can use this function to iterate over all children of a node as shown in
|
||||
the example.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domnode_next_sibling</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,73 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id='function.domnode-remove-child' xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomNode::remove_child</refname>
|
||||
<refpurpose>
|
||||
Removes child from list of children
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>domtext</type><methodname>DomNode::remove_child</methodname>
|
||||
<methodparam><type>domtext</type><parameter>oldchild</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This functions removes a child from a list of children. If child cannot
|
||||
be removed or is not a child the function will return &false;.
|
||||
If the child could be removed the functions returns the old child.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title>Removing a child</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
include("example.inc");
|
||||
|
||||
if (!$dom = domxml_open_mem($xmlstr)) {
|
||||
echo "Error while parsing the document\n";
|
||||
exit;
|
||||
}
|
||||
|
||||
$elements = $dom->get_elements_by_tagname("tbody");
|
||||
$element = $elements[0];
|
||||
$children = $element->child_nodes();
|
||||
$child = $element->remove_child($children[0]);
|
||||
|
||||
echo "<PRE>";
|
||||
$xmlfile = $dom->dump_mem(true);
|
||||
echo htmlentities($xmlfile);
|
||||
echo "</PRE>";
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domnode_append_child</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,57 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id='function.domnode-replace-child' xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomNode::replace_child</refname>
|
||||
<refpurpose>
|
||||
Replaces a child
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>domelement</type><methodname>DomNode::replace_child</methodname>
|
||||
<methodparam><type>domelement</type><parameter>newnode</parameter></methodparam>
|
||||
<methodparam><type>domelement</type><parameter>oldnode</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
(PHP 4.2) This function replaces the child <parameter>oldnode</parameter>
|
||||
with the passed new node. If the new node is already a child it
|
||||
will not be added a second time. If the old node cannot be found
|
||||
the function returns &false;. If the replacement succeeds the old node
|
||||
is returned.
|
||||
</para>
|
||||
<para>
|
||||
(PHP 4.3) This function replaces the child <parameter>oldnode</parameter>
|
||||
with the passed <parameter>newnode</parameter>, even if the new node already
|
||||
is a child of the DomNode. If <parameter>newnode</parameter> was already
|
||||
inserted in the document it is first unlinked from its existing context.
|
||||
If the old node cannot be found the function returns &false;. If the replacement
|
||||
succeeds the old node is returned. (This behaviour is according to the W3C specs).
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domnode_append_child</function>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,58 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id='function.domnode-replace-node' xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomNode::replace_node</refname>
|
||||
<refpurpose>
|
||||
Replaces node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>domelement</type><methodname>DomNode::replace_node</methodname>
|
||||
<methodparam><type>domelement</type><parameter>newnode</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
(PHP 4.2) This function replaces an existing node with the passed
|
||||
new node. Before the replacement
|
||||
<parameter>newnode</parameter> is copied if it has a parent to
|
||||
make sure a node which is
|
||||
already in the document will not be inserted a second time. This
|
||||
behaviour enforces doing all modifications on the node before the
|
||||
replacement or to refetch the inserted node afterwards with functions like
|
||||
<function>domnode_first_child</function>,
|
||||
<function>domnode_child_nodes</function> etc..
|
||||
</para>
|
||||
<para>
|
||||
(PHP 4.3) This function replaces an existing node with the passed new node. It is not
|
||||
copied anymore. If <parameter>newnode</parameter> was already inserted in the document
|
||||
it is first unlinked from its existing context. If the replacement succeeds the old
|
||||
node is returned.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domnode_append_child</function>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id='function.domnode-set-content' xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomNode::set_content</refname>
|
||||
<refpurpose>
|
||||
Sets content of node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>DomNode::set_content</methodname>
|
||||
<methodparam><type>string</type><parameter>content</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
&warn.undocumented.func;
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,44 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id='function.domnode-set-name' xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomNode::set_name</refname>
|
||||
<refpurpose>
|
||||
Sets name of node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>DomNode::set_name</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Sets name of node.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domnode_node_name</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,49 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id='function.domnode-set-namespace' xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomNode::set_namespace</refname>
|
||||
<refpurpose>
|
||||
Sets namespace of a node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>DomNode::set_namespace</methodname>
|
||||
<methodparam><type>string</type><parameter>uri</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>string</type><parameter>prefix</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Sets the namespace of a node to <parameter>uri</parameter>.
|
||||
If there is already a namespace declaration with the same uri in one of the parent nodes
|
||||
of the node, the prefix of this is taken, otherwise it will take the one provided
|
||||
in the optional parameter <parameter>prefix</parameter> or generate a random one.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>domdocument_create_element_ns</function>, and
|
||||
<function>domnode_add_namespace</function>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id='function.domnode-unlink-node' xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomNode::unlink_node</refname>
|
||||
<refpurpose>
|
||||
Deletes node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>DomNode::unlink_node</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
&warn.undocumented.func;
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,54 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id='function.domprocessinginstruction-data' xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomProcessingInstruction::data</refname>
|
||||
<refpurpose>
|
||||
Returns the data of ProcessingInstruction node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<modifier>public</modifier> <type>string</type><methodname>DomProcessingInstruction::data</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This method gets the data of the ProcessingInstruction node.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
Returns the data of the Processing Instruction.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="migration">
|
||||
<title>Migrating to PHP 5</title>
|
||||
<para>
|
||||
Use the <property>data</property> property of
|
||||
<classname>DOMProcessingInstruction</classname>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,54 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id='function.domprocessinginstruction-target' xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomProcessingInstruction::target</refname>
|
||||
<refpurpose>
|
||||
Returns the target of a ProcessingInstruction node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<modifier>public</modifier> <type>string</type><methodname>DomProcessingInstruction::target</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This method gets the target of the ProcessingInstruction node.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
Returns the target of the Processing Instruction.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="migration">
|
||||
<title>Migrating to PHP 5</title>
|
||||
<para>
|
||||
Use the <property>target</property> property of
|
||||
<classname>DOMProcessingInstruction</classname>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,141 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id="function.domxsltstylesheet-process" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomXsltStylesheet::process</refname>
|
||||
<refpurpose>
|
||||
Applies the XSLT-Transformation on a DomDocument Object
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>DomDocument</type><methodname>DomXsltStylesheet::process</methodname>
|
||||
<methodparam><type>DomDocument</type><parameter>xml_doc</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>array</type><parameter>xslt_params</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>bool</type><parameter>is_xpath_param</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>string</type><parameter>profile_filename</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Applies an XSLT Transformation on the given
|
||||
<classname>DomDocument</classname> object.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>xml_doc</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The XML document being transformed, as a
|
||||
<classname>DomDocument</classname> object.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>xslt_params</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
An associative array that takes pairs of parameter names and values.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>is_xpath_param</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
If set to &false; the values of the <parameter>xslt_params</parameter>
|
||||
will be quoted. This is the default behavior. It allows you to pass
|
||||
the values as PHP strings.
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
If your strings contains both single and double quotes, you must take
|
||||
care of quoting all the values by yourself and set this parameter to
|
||||
&true;.
|
||||
</para>
|
||||
</note>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>profile_filename</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Set this to the path of a filename, if you want profiling information.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
Returns the result of the processing, as a
|
||||
<classname>DomDocument</classname> object.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="migration">
|
||||
<title>Migrating to PHP 5</title>
|
||||
<para>
|
||||
Use <function>XSLTProcessor::setParameter</function> and
|
||||
<function>XSLTProcessor::transform-to-doc</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="changelog">
|
||||
&reftitle.changelog;
|
||||
<para>
|
||||
<informaltable>
|
||||
<tgroup cols="2">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>&Version;</entry>
|
||||
<entry>&Description;</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>4.3.0</entry>
|
||||
<entry>
|
||||
The <parameter>profile_filename</parameter> parameter was added.
|
||||
</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</informaltable>
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
<simplelist>
|
||||
<member><function>domxml_xslt_stylesheet</function></member>
|
||||
<member><function>domxml_xslt_stylesheet_file</function></member>
|
||||
<member><function>domxml_xslt_stylesheet_doc</function></member>
|
||||
</simplelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,77 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id="function.domxsltstylesheet-result-dump-file" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomXsltStylesheet::result_dump_file</refname>
|
||||
<refpurpose>
|
||||
Dumps the result from a XSLT-Transformation into a file
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>DomXsltStylesheet::result_dump_file</methodname>
|
||||
<methodparam><type>DomDocument</type><parameter>xmldoc</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Since <xref linkend="function.domxsltstylesheet-process" /> always returns a
|
||||
well-formed XML DomDocument, no matter what output method was declared in
|
||||
<![CDATA[<xsl:output>]]> and similar attributes/elements, it's of not much use,
|
||||
if you want to output HTML 4 or text data.
|
||||
</para>
|
||||
<para>
|
||||
This function on the contrary honors <![CDATA[<xsl:output method="html|text">]]>
|
||||
and other output control directives. See the example for instruction on how to use it.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
<example>
|
||||
<title>Saving the result of a XSLT transformation in a file</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$filename = "stylesheet.xsl";
|
||||
$xmldoc = domxml_open_file("data.xml");
|
||||
$xsldoc = domxml_xslt_stylesheet_file($filename);
|
||||
$result = $xsldoc->process($xmldoc);
|
||||
echo $xsldoc->result_dump_file($result, "filename");
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
<simplelist>
|
||||
<member><xref linkend="function.domxsltstylesheet-result-dump-mem" /></member>
|
||||
<member><xref linkend="function.domxsltstylesheet-process" /></member>
|
||||
</simplelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,76 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id="function.domxsltstylesheet-result-dump-mem" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>DomXsltStylesheet::result_dump_mem</refname>
|
||||
<refpurpose>
|
||||
Dumps the result from a XSLT-Transformation back into a string
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>DomXsltStylesheet::result_dump_mem</methodname>
|
||||
<methodparam><type>DomDocument</type><parameter>xmldoc</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Since <xref linkend="function.domxsltstylesheet-process" /> always returns
|
||||
a well-formed XML DomDocument, no matter what output method was declared
|
||||
in <![CDATA[<xsl:output>]]> and similar attributes/elements, it's of not
|
||||
much use, if you want to output HTML 4 or text data.
|
||||
</para>
|
||||
<para>
|
||||
This function on the contrary honors <![CDATA[<xsl:output method="html|text">]]>
|
||||
and other output control directives. See the example for instruction on how to use it.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
<example>
|
||||
<title>Outputting the result of a XSLT transformation</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$filename = "stylesheet.xsl";
|
||||
$xmldoc = domxml_open_file("data.xml");
|
||||
$xsldoc = domxml_xslt_stylesheet_file($filename);
|
||||
$result = $xsldoc->process($xmldoc);
|
||||
echo $xsldoc->result_dump_mem($result);
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
<simplelist>
|
||||
<member><xref linkend="function.domxsltstylesheet-result-dump-file" /></member>
|
||||
<member><xref linkend="function.domxsltstylesheet-process" /></member>
|
||||
</simplelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,73 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
|
||||
<book xml:id="book.domxml" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>DOM XML (PHP 4)</title>
|
||||
|
||||
<!-- {{{ preface -->
|
||||
<preface xml:id="intro.domxml">
|
||||
&reftitle.intro;
|
||||
<para>
|
||||
The DOM XML extension has been overhauled in PHP 4.3.0 to better comply with
|
||||
the DOM standard. The extension still contains
|
||||
many old functions, but they should no longer be used. In particular, functions
|
||||
that are not object-oriented should be avoided.
|
||||
</para>
|
||||
<para>
|
||||
The extension allows you to operate on an XML document with the DOM API.
|
||||
It also provides a function <function>domxml_xmltree</function> to turn the
|
||||
complete XML document into a tree of PHP objects. Currently, this
|
||||
tree should be considered read-only - you can modify it, but this
|
||||
would not make any sense since <function>DomDocument_dump_mem</function>
|
||||
cannot be
|
||||
applied to it. Therefore, if you want to read an XML file and write
|
||||
a modified version, use <function>DomDocument_create_element</function>,
|
||||
<function>DomDocument_create_text_node</function>,
|
||||
<function>set_attribute</function>, etc. and finally the
|
||||
<function>DomDocument_dump_mem</function> function.
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
&pecl.moved-ver;5.0.0.
|
||||
</para>
|
||||
</note>
|
||||
<note>
|
||||
<simpara>
|
||||
This extension is no longer marked experimental. It will, however, never
|
||||
be released with PHP 5, and will only be distributed with PHP 4.
|
||||
If you need DOM XML support with PHP 5 you can use the
|
||||
<link linkend="book.dom">DOM</link> extension. This
|
||||
<literal>domxml</literal> extension is not compatible with the
|
||||
<link linkend="book.dom">DOM</link> extension.
|
||||
</simpara>
|
||||
</note>
|
||||
</preface>
|
||||
<!-- }}} -->
|
||||
|
||||
&reference.domxml.setup;
|
||||
&reference.domxml.constants;
|
||||
&reference.domxml.reference;
|
||||
|
||||
</book>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,53 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<section xml:id="domxml.installation" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
&reftitle.install;
|
||||
<para>
|
||||
&pecl.moved;
|
||||
&pecl.info;
|
||||
<link xlink:href="&url.pecl.package;domxml">&url.pecl.package;domxml</link>.
|
||||
</para>
|
||||
<para>
|
||||
&pecl.source.4;
|
||||
This extension is only available if PHP was configured with
|
||||
<option role="configure">--with-dom[=DIR]</option>. Add
|
||||
<option role="configure">--with-dom-xslt[=DIR]</option> to include DOM
|
||||
XSLT support. DIR is the libxslt install directory. Add
|
||||
<option role="configure">--with-dom-exslt[=DIR]</option> to include DOM
|
||||
EXSLT support, where DIR is the libexslt install directory.
|
||||
</para>
|
||||
<para>
|
||||
Windows users will enable <filename>php_domxml.dll</filename> inside
|
||||
of &php.ini; in order to use these functions.
|
||||
&pecl.windows.4;
|
||||
&pecl.windows.download;
|
||||
Also, there is one additional DLL that must be made available to your
|
||||
system's <literal>PATH</literal> in order for this extension to work. In PHP 4 this is
|
||||
in the <filename>dlls/</filename> directory. It's name:
|
||||
For PHP <= 4.2.0, it's <filename>libxml2.dll</filename>.
|
||||
For PHP >= 4.3.0, it's <filename>iconv.dll</filename>.
|
||||
And as of PHP 5.0.0, iconv is compiled into your Windows PHP binaries by
|
||||
default so no extra DLL is needed.
|
||||
</para>
|
||||
</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:"~/.phpdoc/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,350 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<appendix xml:id="domxml.constants" xmlns="http://docbook.org/ns/docbook">
|
||||
&reftitle.constants;
|
||||
&extension.constants;
|
||||
<table>
|
||||
<title>XML constants</title>
|
||||
<tgroup cols="3">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>Constant</entry>
|
||||
<entry>Value</entry>
|
||||
<entry>Description</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>XML_ELEMENT_NODE</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry>1</entry>
|
||||
<entry>Node is an element</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>XML_ATTRIBUTE_NODE</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry>2</entry>
|
||||
<entry>Node is an attribute</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>XML_TEXT_NODE</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry>3</entry>
|
||||
<entry>Node is a piece of text</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>XML_CDATA_SECTION_NODE</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry>4</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>XML_ENTITY_REF_NODE</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry>5</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>XML_ENTITY_NODE</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry>6</entry>
|
||||
<entry>Node is an entity like &nbsp;</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>XML_PI_NODE</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry>7</entry>
|
||||
<entry>Node is a processing instruction</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>XML_COMMENT_NODE</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry>8</entry>
|
||||
<entry>Node is a comment</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>XML_DOCUMENT_NODE</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry>9</entry>
|
||||
<entry>Node is a document</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>XML_DOCUMENT_TYPE_NODE</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry>10</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>XML_DOCUMENT_FRAG_NODE</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry>11</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>XML_NOTATION_NODE</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry>12</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>XML_GLOBAL_NAMESPACE</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry>1</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>XML_LOCAL_NAMESPACE</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry>2</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<!-- Following constants copied from appendices/reserved.constants.domxml.xml.
|
||||
no someone familiar with this extension should do further work.
|
||||
-->
|
||||
|
||||
<row>
|
||||
<entry>
|
||||
<constant>XML_HTML_DOCUMENT_NODE</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>XML_DTD_NODE</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>XML_ELEMENT_DECL_NODE</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>XML_ATTRIBUTE_DECL_NODE</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>XML_ENTITY_DECL_NODE</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>XML_NAMESPACE_DECL_NODE</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>XML_ATTRIBUTE_CDATA</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>XML_ATTRIBUTE_ID</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>XML_ATTRIBUTE_IDREF</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>XML_ATTRIBUTE_IDREFS</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>XML_ATTRIBUTE_ENTITY</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>XML_ATTRIBUTE_NMTOKEN</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>XML_ATTRIBUTE_NMTOKENS</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>XML_ATTRIBUTE_ENUMERATION</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>XML_ATTRIBUTE_NOTATION</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>XPATH_UNDEFINED</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>XPATH_NODESET</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>XPATH_BOOLEAN</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>XPATH_NUMBER</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>XPATH_STRING</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>XPATH_POINT</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>XPATH_RANGE</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>XPATH_LOCATIONSET</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>XPATH_USERS</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
</appendix>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,62 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id="function.domxml-new-doc" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>domxml_new_doc</refname>
|
||||
<refpurpose>
|
||||
Creates new empty XML document
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>DomDocument</type><methodname>domxml_new_doc</methodname>
|
||||
<methodparam><type>string</type><parameter>version</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Creates a new Dom document from scratch and returns it.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>version</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The XML version number of the document.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
Returns a new <classname>DomDocument</classname> instance.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,145 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id="function.domxml-open-file" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>domxml_open_file</refname>
|
||||
<refpurpose>Creates a DOM object from an XML file</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>DomDocument</type><methodname>domxml_open_file</methodname>
|
||||
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>mode</parameter><initializer>DOMXML_LOAD_PARSING</initializer></methodparam>
|
||||
<methodparam choice="opt"><type>array</type><parameter role="reference">error</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
The function parses the XML document in the given file.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>filename</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The path to the XML file. The file is accessed in read-only mode.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>mode</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
This optional parameter can be used to change the behavior of this
|
||||
function.
|
||||
</para>
|
||||
<para>
|
||||
You can use one of the following constants for it:
|
||||
<constant>DOMXML_LOAD_PARSING</constant> (default),
|
||||
<constant>DOMXML_LOAD_VALIDATING</constant> or
|
||||
<constant>DOMXML_LOAD_RECOVERING</constant>.
|
||||
You can add to it also <constant>DOMXML_LOAD_DONT_KEEP_BLANKS</constant>,
|
||||
<constant>DOMXML_LOAD_SUBSTITUTE_ENTITIES</constant> and
|
||||
<constant>DOMXML_LOAD_COMPLETE_ATTRS</constant> by
|
||||
<link linkend="language.operators.bitwise">bitwise or</link>.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>error</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
If used, it will contain the error messages.
|
||||
<parameter>error</parameter> must be passed in by <link
|
||||
linkend="language.references">reference</link>.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
Returns a <classname>DomDocument</classname> instance of the given file.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
<example>
|
||||
<title>Opening an XML document from a file</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
||||
if (!$dom = domxml_open_file("example.xml")) {
|
||||
echo "Error while parsing the document\n";
|
||||
exit;
|
||||
}
|
||||
|
||||
$root = $dom->document_element();
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="changelog">
|
||||
&reftitle.changelog;
|
||||
<para>
|
||||
<informaltable>
|
||||
<tgroup cols="2">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>&Version;</entry>
|
||||
<entry>&Description;</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>4.3.0</entry>
|
||||
<entry>
|
||||
The parameters <parameter>mode</parameter> and
|
||||
<parameter>error</parameter> were added.
|
||||
</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</informaltable>
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
<simplelist>
|
||||
<member><function>domxml_open_mem</function></member>
|
||||
<member><function>domxml_new_doc</function></member>
|
||||
</simplelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,149 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.domxml-open-mem">
|
||||
<refnamediv>
|
||||
<refname>domxml_open_mem</refname>
|
||||
<refpurpose>Creates a DOM object of an XML document</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>DomDocument</type><methodname>domxml_open_mem</methodname>
|
||||
<methodparam><type>string</type><parameter>str</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>mode</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>array</type><parameter role="reference">error</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
The function parses the XML document in the given string.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>str</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The contents of the XML file.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>mode</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
This optional parameter can be used to change the behavior of this
|
||||
function.
|
||||
</para>
|
||||
<para>
|
||||
You can use one of the following constants for it:
|
||||
<constant>DOMXML_LOAD_PARSING</constant> (default),
|
||||
<constant>DOMXML_LOAD_VALIDATING</constant> or
|
||||
<constant>DOMXML_LOAD_RECOVERING</constant>.
|
||||
You can add to it also <constant>DOMXML_LOAD_DONT_KEEP_BLANKS</constant>,
|
||||
<constant>DOMXML_LOAD_SUBSTITUTE_ENTITIES</constant> and
|
||||
<constant>DOMXML_LOAD_COMPLETE_ATTRS</constant> by
|
||||
<link linkend="language.operators.bitwise">bitwise or</link>.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>error</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
If used, it will contain the error messages.
|
||||
<parameter>error</parameter> must be passed in by <link
|
||||
linkend="language.references">reference</link>.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
Returns a <classname>DomDocument</classname> instance of the given XML
|
||||
contents.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="changelog">
|
||||
&reftitle.changelog;
|
||||
<para>
|
||||
<informaltable>
|
||||
<tgroup cols="2">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>&Version;</entry>
|
||||
<entry>&Description;</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>4.3.0</entry>
|
||||
<entry>
|
||||
The <parameter>mode</parameter> and <parameter>error</parameter>
|
||||
parameters were added.
|
||||
</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</informaltable>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
<example>
|
||||
<title>Opening an XML document in a string</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
include("example.inc");
|
||||
|
||||
if (!$dom = domxml_open_mem($xmlstr)) {
|
||||
echo "Error while parsing the document\n";
|
||||
exit;
|
||||
}
|
||||
|
||||
$root = $dom->document_element();
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
<simplelist>
|
||||
<member><function>domxml_open_file</function></member>
|
||||
<member><function>domxml_new_doc</function></member>
|
||||
</simplelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,70 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id='function.domxml-version' xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>domxml_version</refname>
|
||||
<refpurpose>
|
||||
Gets the XML library version
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>domxml_version</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Gets the version of the XML library currently used.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
The version of the XML library, as a string.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
<example>
|
||||
<title><function>domxml_version</function> Example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
||||
echo domxml_version();
|
||||
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
&example.outputs.similar;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
20607
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,74 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id="function.domxml-xmltree" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>domxml_xmltree</refname>
|
||||
<refpurpose>
|
||||
Creates a tree of PHP objects from an XML document
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>DomDocument</type><methodname>domxml_xmltree</methodname>
|
||||
<methodparam><type>string</type><parameter>str</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
The function parses the XML document in <parameter>str</parameter> and
|
||||
returns a tree PHP objects as the parsed document.
|
||||
</para>
|
||||
<para>
|
||||
This function is isolated from the other functions, which means you cannot
|
||||
access the tree with any of the other functions.
|
||||
Modifying it, for example by adding nodes, makes no sense since there
|
||||
is currently no way to dump it as an XML file.
|
||||
</para>
|
||||
<para>
|
||||
However this function may be valuable if you want to read a file and
|
||||
investigate the content.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>str</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The contents of the XML file.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
Returns a tree of Dom objects starting by a
|
||||
<classname>DomDocument</classname>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,80 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id="function.domxml-xslt-stylesheet-doc" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>domxml_xslt_stylesheet_doc</refname>
|
||||
<refpurpose>
|
||||
Creates a DomXsltStylesheet Object from a DomDocument Object
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>DomXsltStylesheet</type><methodname>domxml_xslt_stylesheet_doc</methodname>
|
||||
<methodparam><type>DomDocument</type><parameter>xsl_doc</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Creates a <classname>DomXsltStylesheet</classname> object from the given
|
||||
XSL document.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>xsl_doc</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The XSL document, as a <classname>DomDocument</classname> object.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
Returns a new instance of <classname>DomXsltStylesheet</classname>.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="migration">
|
||||
<title>Migrating to PHP 5</title>
|
||||
<para>
|
||||
Call <function>XSLTProcessor::importStylesheet</function> with
|
||||
the <parameter>xsl_doc</parameter> parameter.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
<simplelist>
|
||||
<member><xref linkend="function.domxsltstylesheet-process" /></member>
|
||||
<member><function>domxml_xslt_stylesheet</function></member>
|
||||
<member><function>domxml_xslt_stylesheet_file</function></member>
|
||||
</simplelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,80 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id="function.domxml-xslt-stylesheet-file" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>domxml_xslt_stylesheet_file</refname>
|
||||
<refpurpose>
|
||||
Creates a DomXsltStylesheet Object from an XSL document in a file
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>DomXsltStylesheet</type><methodname>domxml_xslt_stylesheet_file</methodname>
|
||||
<methodparam><type>string</type><parameter>xsl_file</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Creates a <classname>DomXsltStylesheet</classname> object from the given
|
||||
XSL file.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>xsl_file</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The path to the XSL document, as a string.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
Returns a new instance of <classname>DomXsltStylesheet</classname>.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="migration">
|
||||
<title>Migrating to PHP 5</title>
|
||||
<para>
|
||||
Call <function>XSLTProcessor::importStylesheet</function> with
|
||||
<literal>DOMDocument::load($xsl_file)</literal> as parameter.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
<simplelist>
|
||||
<member><xref linkend="function.domxsltstylesheet-process" /></member>
|
||||
<member><function>domxml_xslt_stylesheet</function></member>
|
||||
<member><function>domxml_xslt_stylesheet_doc</function></member>
|
||||
</simplelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,80 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id="function.domxml-xslt-stylesheet" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>domxml_xslt_stylesheet</refname>
|
||||
<refpurpose>
|
||||
Creates a DomXsltStylesheet object from an XSL document in a string
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>DomXsltStylesheet</type><methodname>domxml_xslt_stylesheet</methodname>
|
||||
<methodparam><type>string</type><parameter>xsl_buf</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Creates a <classname>DomXsltStylesheet</classname> object from the given
|
||||
XSL buffer.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>xsl_buf</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The XSL document, as a string.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
Returns a new instance of <classname>DomXsltStylesheet</classname>.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="migration">
|
||||
<title>Migrating to PHP 5</title>
|
||||
<para>
|
||||
Call <function>XSLTProcessor::importStylesheet</function> with
|
||||
<literal>DOMDocument::loadXML($xsl_buf)</literal> as parameter.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
<simplelist>
|
||||
<member><xref linkend="function.domxsltstylesheet-process" /></member>
|
||||
<member><function>domxml_xslt_stylesheet_file</function></member>
|
||||
<member><function>domxml_xslt_stylesheet_doc</function></member>
|
||||
</simplelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,78 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id="function.domxml-xslt-version" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>domxml_xslt_version</refname>
|
||||
<refpurpose>
|
||||
Gets the XSLT library version
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>int</type><methodname>domxml_xslt_version</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Gets the XSLT library version.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
Returns the version number of the XSLT library, as an integer.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
<example>
|
||||
<title><function>domxml_xslt_version</function> Example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
||||
echo domxml_xslt_version();
|
||||
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
&example.outputs.similar;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
10112
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
<simplelist>
|
||||
<member><function>domxml_version</function></member>
|
||||
</simplelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,96 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.29 -->
|
||||
<refentry xml:id="function.xpath-eval-expression" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>xpath_eval_expression</refname>
|
||||
<refpurpose>
|
||||
Evaluates the XPath Location Path in the given string
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>XPathObject</type><methodname>XPathContext::xpath_eval_expression</methodname>
|
||||
<methodparam><type>string</type><parameter>expression</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>domnode</type><parameter>contextnode</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<methodsynopsis>
|
||||
<type>XPathObject</type><methodname>xpath_eval_expression</methodname>
|
||||
<methodparam><type>XPathContext</type><parameter>xpath_context</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>expression</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>domnode</type><parameter>contextnode</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
<example>
|
||||
<title><function>xpath_eval_expression</function> Example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
||||
include("example.inc");
|
||||
|
||||
if (!$dom = domxml_open_mem($xmlstr)) {
|
||||
echo "Error while parsing the document\n";
|
||||
exit;
|
||||
}
|
||||
|
||||
$xpath = xpath_new_context($dom);
|
||||
var_dump(xpath_eval_expression($xpath, '/chapter/@language'));
|
||||
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
object(XPathObject)(2) {
|
||||
["type"]=>
|
||||
int(1)
|
||||
["nodeset"]=>
|
||||
array(1) {
|
||||
[0]=>
|
||||
object(domattribute)(5) {
|
||||
["type"]=>
|
||||
int(2)
|
||||
["name"]=>
|
||||
string(8) "language"
|
||||
["value"]=>
|
||||
string(2) "en"
|
||||
[0]=>
|
||||
int(7)
|
||||
[1]=>
|
||||
int(138004256)
|
||||
}
|
||||
}
|
||||
}
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also <function>xpath_eval</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,52 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 -->
|
||||
<refentry xml:id="function.xpath-eval" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>xpath_eval</refname>
|
||||
<refpurpose>
|
||||
Evaluates the XPath Location Path in the given string
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>XPathObject</type><methodname>XPathContext::xpath_eval</methodname>
|
||||
<methodparam><type>string</type><parameter>xpath_expression</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>domnode</type><parameter>contextnode</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<methodsynopsis>
|
||||
<type>XPathObject</type><methodname>xpath_eval</methodname>
|
||||
<methodparam><type>XPathContext</type><parameter>xpath_context</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>xpath_expression</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>domnode</type><parameter>contextnode</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
The optional <parameter>contextnode</parameter> can be specified for doing relative XPath queries.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>xpath_new_context</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,49 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id="function.xpath-new-context" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>xpath_new_context</refname>
|
||||
<refpurpose>
|
||||
Creates new xpath context
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>XPathContext</type><methodname>xpath_new_context</methodname>
|
||||
<methodparam><type>domdocument</type><parameter>dom_document</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Creates a new xpath context.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
<simplelist>
|
||||
<member><function>xpath_eval</function></member>
|
||||
</simplelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,54 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id="function.xpath-register-ns-auto" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>xpath_register_ns_auto</refname>
|
||||
<refpurpose>
|
||||
Register the given namespace in the passed XPath context
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>xpath_register_ns_auto</methodname>
|
||||
<methodparam><type>XPathContext</type><parameter>xpath_context</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>object</type><parameter>context_node</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
&warn.undocumented.func;
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
&return.success;
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
<simplelist>
|
||||
<member><function>xpath_register_ns</function></member>
|
||||
</simplelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,55 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id="function.xpath-register-ns" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>xpath_register_ns</refname>
|
||||
<refpurpose>
|
||||
Register the given namespace in the passed XPath context
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>xpath_register_ns</methodname>
|
||||
<methodparam><type>XPathContext</type><parameter>xpath_context</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>prefix</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>uri</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
&warn.undocumented.func;
|
||||
</refsect1>
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
&return.success;
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
<simplelist>
|
||||
<member><function>xpath_register_ns_auto</function></member>
|
||||
</simplelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,48 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id='function.xptr-eval' xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>xptr_eval</refname>
|
||||
<refpurpose>
|
||||
Evaluate the XPtr Location Path in the given string
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>int</type><methodname>XPathContext::xptr_eval</methodname>
|
||||
<methodparam><type>string</type><parameter>eval_str</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>domnode</type><parameter>contextnode</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<methodsynopsis>
|
||||
<type>int</type><methodname>xptr_eval</methodname>
|
||||
<methodparam><type>XPathContext</type><parameter>xpath_context</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>eval_str</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>domnode</type><parameter>contextnode</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
&warn.undocumented.func;
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id='function.xptr-new-context' xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>xptr_new_context</refname>
|
||||
<refpurpose>
|
||||
Create new XPath Context
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>XPathContext</type><methodname>xptr_new_context</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
&warn.undocumented.func;
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,733 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
|
||||
<reference xml:id="ref.domxml" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>DOM XML (PHP 4) &Functions;</title>
|
||||
|
||||
<partintro>
|
||||
<section xml:id="domxml.deprecated">
|
||||
<title>Deprecated functions</title>
|
||||
<para>
|
||||
There are quite a few functions that do not fit into the DOM standard and
|
||||
should no longer be used. These functions are listed in the following table.
|
||||
The function <function>DomNode_append_child</function> has changed its
|
||||
behaviour. It now adds a child and not a sibling. If this
|
||||
breaks your application, use the non-DOM function
|
||||
<function>DomNode_append_sibling</function>.
|
||||
</para>
|
||||
<para>
|
||||
<table>
|
||||
<title>Deprecated functions and their replacements</title>
|
||||
<tgroup cols="2">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>Old function</entry>
|
||||
<entry>New function</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>xmldoc</entry>
|
||||
<entry><function>domxml_open_mem</function></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>xmldocfile</entry>
|
||||
<entry><function>domxml_open_file</function></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>domxml_new_xmldoc</entry>
|
||||
<entry><function>domxml_new_doc</function></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>domxml_dump_mem</entry>
|
||||
<entry><function>DomDocument_dump_mem</function></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>domxml_dump_mem_file</entry>
|
||||
<entry><function>DomDocument_dump_file</function></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomDocument_dump_mem_file</entry>
|
||||
<entry><function>DomDocument_dump_file</function></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomDocument_add_root</entry>
|
||||
<entry><function>DomDocument_create_element</function> followed by
|
||||
<function>DomNode_append_child</function></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomDocument_dtd</entry>
|
||||
<entry><function>DomDocument_doctype</function></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomDocument_root</entry>
|
||||
<entry><function>DomDocument_document_element</function></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomDocument_children</entry>
|
||||
<entry><function>DomNode_child_nodes</function></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomDocument_imported_node</entry>
|
||||
<entry>No replacement.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomNode_add_child</entry>
|
||||
<entry>Create a new node with e.g.
|
||||
<function>DomDocument_create_element</function> and add it with
|
||||
<function>DomNode_append_child</function>.
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomNode_children</entry>
|
||||
<entry><function>DomNode_child_nodes</function></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomNode_parent</entry>
|
||||
<entry><function>DomNode_parent_node</function></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomNode_new_child</entry>
|
||||
<entry>Create a new node with e.g.
|
||||
<function>DomDocument_create_element</function> and add it with
|
||||
<function>DomNode_append_child</function>.
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomNode_set_content</entry>
|
||||
<entry>Create a new node with e.g.
|
||||
<function>DomDocument_create_text_node</function> and add it with
|
||||
<function>DomNode_append_child</function>.
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomNode_get_content</entry>
|
||||
<entry>Content is just a text node and can be accessed with
|
||||
<function>DomNode_child_nodes</function>.
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomNode_set_content</entry>
|
||||
<entry>Content is just a text node and can be added with
|
||||
<function>DomNode_append_child</function>.
|
||||
</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
</para>
|
||||
</section>
|
||||
|
||||
<!--
|
||||
FIXME:
|
||||
Maybe someone, someday, wants to upgrade this mess to use the
|
||||
new OO markup..
|
||||
-->
|
||||
<section xml:id="domxml.classes">
|
||||
<title>Classes</title>
|
||||
<para>
|
||||
The API of the module follows the DOM Level 2 standard as closely
|
||||
as possible. Consequently, the API is fully object-oriented.
|
||||
It is a good idea to have the DOM standard available when
|
||||
using this module.
|
||||
Though the API is object-oriented, there are many functions which can
|
||||
be called in a non-object-oriented way by passing the object to operate
|
||||
on as the first argument. These functions are mainly to retain compatibility
|
||||
to older versions of the extension, and should not be used when creating new
|
||||
scripts.
|
||||
</para>
|
||||
<para>
|
||||
This API differs from the official DOM API in two ways. First, all
|
||||
class attributes are implemented as functions with the same name.
|
||||
Secondly, the function names follow the PHP naming convention. This means
|
||||
that a DOM function lastChild() will be written as last_child().
|
||||
</para>
|
||||
<para>
|
||||
This module defines a number of classes, which are listed -
|
||||
including their
|
||||
method - in the following tables. Classes with an equivalent in the
|
||||
DOM standard are named DOMxxx.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
<table>
|
||||
<title>List of classes</title>
|
||||
<tgroup cols="2">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>Class name</entry>
|
||||
<entry>Parent classes</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>DomAttribute</entry>
|
||||
<entry>DomNode</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomCData</entry>
|
||||
<entry>DomNode</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomComment</entry>
|
||||
<entry>DomCData : DomNode</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomDocument</entry>
|
||||
<entry>DomNode</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomDocumentType</entry>
|
||||
<entry>DomNode</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomElement</entry>
|
||||
<entry>DomNode</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomEntity</entry>
|
||||
<entry>DomNode</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomEntityReference</entry>
|
||||
<entry>DomNode</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomProcessingInstruction</entry>
|
||||
<entry>DomNode</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DomText</entry>
|
||||
<entry>DomCData : DomNode</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>Parser</entry>
|
||||
<entry>Currently still called DomParser</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>XPathContext</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
</para>
|
||||
|
||||
<para>
|
||||
<table>
|
||||
<title>DomDocument class (DomDocument : DomNode)</title>
|
||||
<tgroup cols="3">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>Method name</entry>
|
||||
<entry>Function name</entry>
|
||||
<entry>Remark</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>doctype</entry>
|
||||
<entry><function>DomDocument_doctype</function></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>document_element</entry>
|
||||
<entry><function>DomDocument_document_element</function></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>create_element</entry>
|
||||
<entry><function>DomDocument_create_element</function></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>create_text_node</entry>
|
||||
<entry><function>DomDocument_create_text_node</function></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>create_comment</entry>
|
||||
<entry><function>DomDocument_create_comment</function></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>create_cdata_section</entry>
|
||||
<entry><function>DomDocument_create_cdata_section</function></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>create_processing_instruction</entry>
|
||||
<entry><function>DomDocument_create_processing_instruction</function></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>create_attribute</entry>
|
||||
<entry><function>DomDocument_create_attribute</function></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>create_entity_reference</entry>
|
||||
<entry><function>DomDocument_create_entity_reference</function></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>get_elements_by_tagname</entry>
|
||||
<entry><function>DomDocument_get_elements_by_tagname</function></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>get_element_by_id</entry>
|
||||
<entry><function>DomDocument_get_element_by_id</function></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>dump_mem</entry>
|
||||
<entry><function>DomDocument_dump_mem</function></entry>
|
||||
<entry>not DOM standard</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>dump_file</entry>
|
||||
<entry><function>DomDocument_dump_file</function></entry>
|
||||
<entry>not DOM standard</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>html_dump_mem</entry>
|
||||
<entry><function>DomDocument_html_dump_mem</function></entry>
|
||||
<entry>not DOM standard</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>xpath_init</entry>
|
||||
<entry>xpath_init</entry>
|
||||
<entry>not DOM standard</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>xpath_new_context</entry>
|
||||
<entry>xpath_new_context</entry>
|
||||
<entry>not DOM standard</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>xptr_new_context</entry>
|
||||
<entry>xptr_new_context</entry>
|
||||
<entry>not DOM standard</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
</para>
|
||||
|
||||
<para>
|
||||
<table>
|
||||
<title>DomElement class (DomElement : DomNode)</title>
|
||||
<tgroup cols="3">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>Method name</entry>
|
||||
<entry>Function name</entry>
|
||||
<entry>Remark</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>tagname</entry>
|
||||
<entry><function>DomElement_tagname</function></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>get_attribute</entry>
|
||||
<entry><function>DomElement_get_attribute</function></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>set_attribute</entry>
|
||||
<entry><function>DomElement_set_attribute</function></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>remove_attribute</entry>
|
||||
<entry><function>DomElement_remove_attribute</function></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>get_attribute_node</entry>
|
||||
<entry><function>DomElement_get_attribute_node</function></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>set_attribute_node</entry>
|
||||
<entry><function>DomElement_set_attribute_node</function></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry>get_elements_by_tagname</entry>
|
||||
<entry><function>DomElement_get_elements_by_tagname</function></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>has_attribute</entry>
|
||||
<entry><function>DomElement_has_attribute</function></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
</para>
|
||||
|
||||
<para>
|
||||
<table>
|
||||
<title>DomNode class</title>
|
||||
<tgroup cols="2">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>Method name</entry>
|
||||
<entry>Remark</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry><function>DomNode_node_name</function></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><function>DomNode_node_value</function></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><function>DomNode_node_type</function></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><function>DomNode_last_child</function></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><function>DomNode_first_child</function></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><function>DomNode_child_nodes</function></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><function>DomNode_previous_sibling</function></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><function>DomNode_next_sibling</function></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><function>DomNode_parent_node</function></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><function>DomNode_owner_document</function></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><function>DomNode_insert_before</function></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><function>DomNode_append_child</function></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><function>DomNode_append_sibling</function></entry>
|
||||
<entry>Not in DOM standard. This function emulates the former
|
||||
behaviour of <function>DomNode_append_child</function>.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><function>DomNode_remove_child</function></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><function>DomNode_has_child_nodes</function></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><function>DomNode_has_attributes</function></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><function>DomNode_clone_node</function></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><function>DomNode_attributes</function></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><function>DomNode_unlink_node</function></entry>
|
||||
<entry>Not in DOM standard</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><function>DomNode_replace_node</function></entry>
|
||||
<entry>Not in DOM standard</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><function>DomNode_set_content</function></entry>
|
||||
<entry>Not in DOM standard, deprecated</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><function>DomNode_get_content</function></entry>
|
||||
<entry>Not in DOM standard, deprecated</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><function>DomNode_dump_node</function></entry>
|
||||
<entry>Not in DOM standard</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><function>DomNode_is_blank_node</function></entry>
|
||||
<entry>Not in DOM standard</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
</para>
|
||||
|
||||
<para>
|
||||
<table>
|
||||
<title>DomAttribute class (DomAttribute : DomNode)</title>
|
||||
<tgroup cols="3">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>Method name</entry>
|
||||
<entry></entry>
|
||||
<entry>Remark</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>name</entry>
|
||||
<entry><function>DomAttribute_name</function></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>value</entry>
|
||||
<entry><function>DomAttribute_value</function></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>specified</entry>
|
||||
<entry><function>DomAttribute_specified</function></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
</para>
|
||||
|
||||
<para>
|
||||
<table>
|
||||
<title>DomProcessingInstruction class (DomProcessingInstruction : DomNode)</title>
|
||||
<tgroup cols="3">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>Method name</entry>
|
||||
<entry>Function name</entry>
|
||||
<entry>Remark</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>target</entry>
|
||||
<entry><function>DomProcessingInstruction_target</function></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>data</entry>
|
||||
<entry><function>DomProcessingInstruction_data</function></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
</para>
|
||||
|
||||
<para>
|
||||
<table>
|
||||
<title>Parser class</title>
|
||||
<tgroup cols="3">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>Method name</entry>
|
||||
<entry>Function name</entry>
|
||||
<entry>Remark</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>add_chunk</entry>
|
||||
<entry><function>Parser_add_chunk</function></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>end</entry>
|
||||
<entry><function>Parser_end</function></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
</para>
|
||||
|
||||
<para>
|
||||
<table>
|
||||
<title>XPathContext class</title>
|
||||
<tgroup cols="3">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>Method name</entry>
|
||||
<entry>Function name</entry>
|
||||
<entry>Remark</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>eval</entry>
|
||||
<entry><function>XPathContext_eval</function></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>eval_expression</entry>
|
||||
<entry><function>XPathContext_eval_expression</function></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>register_ns</entry>
|
||||
<entry><function>XPathContext_register_ns</function></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
</para>
|
||||
|
||||
<para>
|
||||
<table>
|
||||
<title>DomDocumentType class (DomDocumentType : DomNode)</title>
|
||||
<tgroup cols="3">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>Method name</entry>
|
||||
<entry>Function name</entry>
|
||||
<entry>Remark</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>name</entry>
|
||||
<entry><function>DomDocumentType_name</function></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>entities</entry>
|
||||
<entry><function>DomDocumentType_entities</function></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>notations</entry>
|
||||
<entry><function>DomDocumentType_notations</function></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>public_id</entry>
|
||||
<entry><function>DomDocumentType_public_id</function></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>system_id</entry>
|
||||
<entry><function>DomDocumentType_system_id</function></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>internal_subset</entry>
|
||||
<entry><function>DomDocumentType_internal_subset</function></entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
</para>
|
||||
|
||||
<para>
|
||||
The classes DomDtd is derived from DomNode. DomComment is derived from
|
||||
DomCData.
|
||||
</para>
|
||||
</section>
|
||||
|
||||
<section xml:id="domxml.examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
Many examples in this reference require an XML string. Instead of
|
||||
repeating this string in every example, it will be put into a file
|
||||
which will be included by each example. This include file is shown in the
|
||||
following example section. Alternatively, you could create an XML document and
|
||||
read it with <function>DomDocument_open_file</function>.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title>Include file example.inc with XML string</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$xmlstr = "<?xml version='1.0' standalone='yes'?>
|
||||
<!DOCTYPE chapter SYSTEM '/share/sgml/Norman_Walsh/db3xml10/db3xml10.dtd'
|
||||
[ <!ENTITY sp \"spanish\">
|
||||
]>
|
||||
<!-- lsfj -->
|
||||
<chapter language='en'><title language='en'>Title</title>
|
||||
<para language='ge'>
|
||||
&sp;
|
||||
<!-- comment -->
|
||||
<informaltable ID='findme' language='&sp;'>
|
||||
<tgroup cols='3'>
|
||||
<tbody>
|
||||
<row><entry>a1</entry><entry
|
||||
morerows='1'>b1</entry><entry>c1</entry></row>
|
||||
<row><entry>a2</entry><entry>c2</entry></row>
|
||||
<row><entry>a3</entry><entry>b3</entry><entry>c3</entry></row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</informaltable>
|
||||
</para>
|
||||
</chapter>";
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
</section>
|
||||
</partintro>
|
||||
|
||||
&reference.domxml.entities.DomAttribute;
|
||||
&reference.domxml.entities.DomDocument;
|
||||
&reference.domxml.entities.DomDocumentType;
|
||||
&reference.domxml.entities.DomElement;
|
||||
&reference.domxml.entities.DomNode;
|
||||
&reference.domxml.entities.DomProcessingInstruction;
|
||||
&reference.domxml.entities.DomXsltStylesheet;
|
||||
&reference.domxml.entities.functions;
|
||||
|
||||
</reference>
|
||||
<!-- 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:"~/.phpdoc/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,63 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
|
||||
<chapter xml:id="domxml.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
&reftitle.setup;
|
||||
|
||||
<!-- {{{ Requirements -->
|
||||
<section xml:id="domxml.requirements">
|
||||
&reftitle.required;
|
||||
<para>
|
||||
This extension makes use of the
|
||||
<link xlink:href="&url.libxml;">GNOME XML library</link>. Download
|
||||
and install this library. You will need at least libxml-2.4.14.
|
||||
To use DOM XSLT features you can use the
|
||||
<link xlink:href="&url.libxslt;">libxslt library</link> and EXSLT
|
||||
enhancements from <link xlink:href="&url.exslt;">&url.exslt;</link>.
|
||||
Download and install these libraries if you plan to use (enhanced) XSLT
|
||||
features. You will need at least libxslt-1.0.18.
|
||||
</para>
|
||||
</section>
|
||||
<!-- }}} -->
|
||||
|
||||
<!-- {{{ Installation -->
|
||||
&reference.domxml.configure;
|
||||
<!-- }}} -->
|
||||
|
||||
<!-- {{{ Configuration -->
|
||||
<section xml:id="domxml.configuration">
|
||||
&reftitle.runtime;
|
||||
&no.config;
|
||||
</section>
|
||||
<!-- }}} -->
|
||||
|
||||
<!-- {{{ Resources -->
|
||||
<section xml:id="domxml.resources">
|
||||
&reftitle.resources;
|
||||
&no.resource;
|
||||
</section>
|
||||
<!-- }}} -->
|
||||
|
||||
</chapter>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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,227 +0,0 @@
|
|||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<!-- $Revision$ -->
|
||||
<!--
|
||||
Do NOT translate this file
|
||||
-->
|
||||
<!--
|
||||
FIXME: How should we handle domxml version information... for phd?
|
||||
-->
|
||||
<versions>
|
||||
|
||||
<function name='domattribute' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domattribute::name' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domattribute::set_value' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domattribute::specified' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domattribute::value' from='PHP 4 >= 4.1.0'/>
|
||||
|
||||
<function name='domnode::add_child' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domnode::add_namespace' from='PHP 4 >= 4.3.0'/>
|
||||
<function name='domnode::append_child' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domnode::append_sibling' from='PHP 4 >= 4.2.0'/>
|
||||
<function name='domnode::attributes' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domnode::children' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domnode::child_nodes' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domnode::clone_node' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domnode::dump_node' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domnode::first_child' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domnode::get_content' from='PHP 4 >= 4.2.0'/>
|
||||
<function name='domnode::has_attributes' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domnode::has_child_nodes' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domnode::insert_before' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domnode::is_blank_node' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domnode::last_child' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domnode::name' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domnode::namespace_uri' from='PHP 4 >= 4.3.0'/>
|
||||
<function name='domnode::new_child' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domnode::next_sibling' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domnode::node_name' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domnode::node_type' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domnode::node_value' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domnode::owner_document' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domnode::parent' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domnode::parent_node' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domnode::prefix' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domnode::previous_sibling' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domnode::remove_child' from='PHP 4 >= 4.2.0'/>
|
||||
<function name='domnode::replace_child' from='PHP 4 >= 4.2.0'/>
|
||||
<function name='domnode::replace_node' from='PHP 4 >= 4.2.0'/>
|
||||
<function name='domnode::set_content' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domnode::set_name' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domnode::set_namespace' from='PHP 4 >= 4.3.0'/>
|
||||
<function name='domnode::text_concat' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domnode::type' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domnode::unlink_node' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domnode::value' from='PHP 4 >= 4.1.0'/>
|
||||
|
||||
<function name='domdocument::add_root' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domdocument::create_attribute' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domdocument::create_cdata_section' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domdocument::create_comment' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domdocument::create_element_ns' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domdocument::create_element' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domdocument::create_entity_reference' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domdocument::create_processing_instruction' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domdocument::create_text_node' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domdocument::doctype' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domdocument::document_element' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domdocument::dump_file' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domdocument::dump_mem' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domdocument::get_element_by_id' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domdocument::get_elements_by_tagname' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domdocument::html_dump_mem' from='PHP 4 >= 4.1.0'/>
|
||||
|
||||
<function name='domdocumenttype::entities' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domdocumenttype::internal_subset' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domdocumenttype::name' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domdocumenttype::notations' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domdocumenttype::public_id' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domdocumenttype::system_id' from='PHP 4 >= 4.1.0'/>
|
||||
|
||||
<function name='domelement::get_attribute_node' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domelement::get_attribute' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domelement::get_elements_by_tagname' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domelement::has_attribute' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domelement::remove_attribute' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domelement::set_attribute_node' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domelement::set_attribute' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domelement::tagname' from='PHP 4 >= 4.1.0'/>
|
||||
|
||||
<function name='domprocessinginstruction::data' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domprocessinginstruction::target' from='PHP 4 >= 4.1.0'/>
|
||||
|
||||
<function name='domxsltstylesheet::process' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domxsltstylesheet::result_dump_file' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domxsltstylesheet::result_dump_mem' from='PHP 4 >= 4.1.0'/>
|
||||
|
||||
<function name='domxml_add_root' from='PHP 4'/>
|
||||
<function name='domxml_attr_name' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domxml_attr_set_value' from='PHP 4 >= 4.3.2'/>
|
||||
<function name='domxml_attr_specified' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domxml_attr_value' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domxml_attributes' from='PHP 4'/>
|
||||
<function name='domxml_attrname' from='PHP 4 <= 4.0.6'/>
|
||||
<function name='domxml_cdata_length' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domxml_children' from='PHP 4'/>
|
||||
<function name='domxml_clone_node' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domxml_doc_add_root' from='PHP 4 >= 4.3.0'/>
|
||||
<function name='domxml_doc_create_attribute' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domxml_doc_create_cdata_section' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domxml_doc_create_comment' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domxml_doc_create_element' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domxml_doc_create_element_ns' from='PHP 4 >= 4.3.0'/>
|
||||
<function name='domxml_doc_create_entity_reference' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domxml_doc_create_processing_instruction' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domxml_doc_create_text_node' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domxml_doc_doctype' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domxml_doc_document_element' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domxml_doc_free_doc' from='PHP 4 >= 4.3.2'/>
|
||||
<function name='domxml_doc_get_element_by_id' from='PHP 4 >= 4.2.0'/>
|
||||
<function name='domxml_doc_get_elements_by_tagname' from='PHP 4 >= 4.2.0'/>
|
||||
<function name='domxml_doc_get_root' from='PHP 4 >= 4.3.0'/>
|
||||
<function name='domxml_doc_ids' from='PHP 4 >= 4.2.0'/>
|
||||
<function name='domxml_doc_implementation' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domxml_doc_imported_node' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domxml_doc_set_root' from='PHP 4 >= 4.3.0'/>
|
||||
<function name='domxml_doc_validate' from='PHP 4 >= 4.3.0'/>
|
||||
<function name='domxml_doc_xinclude' from='PHP 4 >= 4.3.0'/>
|
||||
<function name='domxml_doctype_entities' from='PHP 4 >= 4.2.0'/>
|
||||
<function name='domxml_doctype_name' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domxml_doctype_notations' from='PHP 4 >= 4.2.0'/>
|
||||
<function name='domxml_doctype_public_id' from='PHP 4 >= 4.2.0'/>
|
||||
<function name='domxml_doctype_system_id' from='PHP 4 >= 4.2.0'/>
|
||||
<function name='domxml_dtd' from='PHP 4'/>
|
||||
<function name='domxml_dump_mem' from='PHP 4 >= 4.2.0'/>
|
||||
<function name='domxml_dump_mem_file' from='PHP 4 >= 4.2.0'/>
|
||||
<function name='domxml_dump_node' from='PHP 4 >= 4.2.0'/>
|
||||
<function name='domxml_dumpmem' from='PHP 4'/>
|
||||
<function name='domxml_elem_get_attribute' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domxml_elem_get_attribute_node' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domxml_elem_get_element_by_tagname' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domxml_elem_get_elements_by_tagname' from='PHP 4 >= 4.2.0'/>
|
||||
<function name='domxml_elem_has_attribute' from='PHP 4 >= 4.2.0'/>
|
||||
<function name='domxml_elem_remove_attribute' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domxml_elem_set_attribute' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domxml_elem_set_attribute_node' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domxml_elem_tagname' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domxml_element' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domxml_get_attribute' from='PHP 4 >= 4.0.5'/>
|
||||
<function name='domxml_getattr' from='PHP 4'/>
|
||||
<function name='domxml_html_dump_mem' from='PHP 4 >= 4.2.0'/>
|
||||
<function name='domxml_is_blank_node' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domxml_last_child' from='PHP 4 >= 4.0.5'/>
|
||||
<function name='domxml_lastchild' from='PHP 4 <= 4.0.4'/>
|
||||
<function name='domxml_new_child' from='PHP 4'/>
|
||||
<function name='domxml_new_doc' from='PHP 4 >= 4.2.0'/>
|
||||
<function name='domxml_new_xmldoc' from='PHP 4'/>
|
||||
|
||||
<function name='domxml_notation_public_id' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domxml_notation_system_id' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domxml_open_file' from='PHP 4 >= 4.2.0'/>
|
||||
<function name='domxml_open_mem' from='PHP 4 >= 4.2.0'/>
|
||||
<function name='domxml_parent' from='PHP 4 <= 4.0.6'/>
|
||||
<function name='domxml_parser' from='PHP 4 >= 4.2.0'/>
|
||||
<function name='domxml_parser_add_chunk' from='PHP 4 >= 4.2.0'/>
|
||||
<function name='domxml_parser_cdata_section' from='PHP 4 >= 4.3.0'/>
|
||||
<function name='domxml_parser_characters' from='PHP 4 >= 4.3.0'/>
|
||||
<function name='domxml_parser_comment' from='PHP 4 >= 4.3.0'/>
|
||||
<function name='domxml_parser_end' from='PHP 4 >= 4.2.0'/>
|
||||
<function name='domxml_parser_end_document' from='PHP 4 >= 4.3.0'/>
|
||||
<function name='domxml_parser_end_element' from='PHP 4 >= 4.3.0'/>
|
||||
<function name='domxml_parser_entity_reference' from='PHP 4 >= 4.3.0'/>
|
||||
<function name='domxml_parser_get_document' from='PHP 4 >= 4.3.0'/>
|
||||
<function name='domxml_parser_namespace_decl' from='PHP 4 >= 4.3.0'/>
|
||||
<function name='domxml_parser_processing_instruction' from='PHP 4 >= 4.3.0'/>
|
||||
<function name='domxml_parser_set_keep_blanks' from='PHP 4 >= 4.2.0'/>
|
||||
<function name='domxml_parser_start_document' from='PHP 4 >= 4.3.0'/>
|
||||
<function name='domxml_parser_start_element' from='PHP 4 >= 4.3.0'/>
|
||||
<function name='domxml_pi_data' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domxml_pi_target' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domxml_root' from='PHP 4'/>
|
||||
<function name='domxml_rootnew' from='PHP 4 <= 4.0.6'/>
|
||||
<function name='domxml_set_attribute' from='PHP 4 >= 4.0.5'/>
|
||||
<function name='domxml_set_content' from='PHP 4 >= 4.0.4'/>
|
||||
<function name='domxml_set_root' from='PHP 4 >= 4.3.0'/>
|
||||
<function name='domxml_setattr' from='PHP 4'/>
|
||||
<function name='domxml_substitute_entities_default' from='PHP 4 >= 4.2.0'/>
|
||||
<function name='domxml_test' from='PHP 4'/>
|
||||
<function name='domxml_unlink_node' from='PHP 4 >= 4.0.5'/>
|
||||
<function name='domxml_version' from='PHP 4 >= 4.1.0'/>
|
||||
<function name='domxml_xmltree' from='PHP 4 >= 4.2.0'/>
|
||||
<function name='domxml_xslt_process' from='PHP 4 >= 4.2.0'/>
|
||||
<function name='domxml_xslt_result_dump_file' from='PHP 4 >= 4.3.0'/>
|
||||
<function name='domxml_xslt_result_dump_mem' from='PHP 4 >= 4.3.0'/>
|
||||
<function name='domxml_xslt_stylesheet' from='PHP 4 >= 4.2.0'/>
|
||||
<function name='domxml_xslt_stylesheet_doc' from='PHP 4 >= 4.2.0'/>
|
||||
<function name='domxml_xslt_stylesheet_file' from='PHP 4 >= 4.2.0'/>
|
||||
<function name='domxml_xslt_version' from='PHP 4 >= 4.2.0'/>
|
||||
|
||||
<function name='xpath_eval' from='PHP 4'/>
|
||||
<function name='xpath_eval_expression' from='PHP 4'/>
|
||||
<function name='xpath_new_context' from='PHP 4'/>
|
||||
<function name='xpath_register_ns' from='PHP 4 >= 4.2.0'/>
|
||||
<function name='xpath_register_ns_auto' from='PHP 4 >= 4.3.0'/>
|
||||
|
||||
<function name='xptr_eval' from='PHP 4'/>
|
||||
<function name='xptr_new_context' from='PHP 4'/>
|
||||
</versions>
|
||||
|
||||
<!-- 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:"~/.phpdoc/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
|
||||
-->
|
Loading…
Reference in a new issue