mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Initial cut of dom docs
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@158250 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
5a16136a60
commit
d64096e069
75 changed files with 4117 additions and 0 deletions
401
reference/dom/constants.xml
Normal file
401
reference/dom/constants.xml
Normal file
|
@ -0,0 +1,401 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<section id="dom.constants">
|
||||
&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_HTML_DOCUMENT_NODE</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry>13</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>XML_DTD_NODE</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry>14</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>XML_ELEMENT_DECL_NODE</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry>15</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>XML_ATTRIBUTE_DECL_NODE</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry>16</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>XML_ENTITY_DECL_NODE</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry>17</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>XML_NAMESPACE_DECL_NODE</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry>18</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>XML_ATTRIBUTE_CDATA</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry>1</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>XML_ATTRIBUTE_ID</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry>2</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>XML_ATTRIBUTE_IDREF</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry>3</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>XML_ATTRIBUTE_IDREFS</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry>4</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>XML_ATTRIBUTE_ENTITY</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry>5</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>XML_ATTRIBUTE_NMTOKEN</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry>7</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>XML_ATTRIBUTE_NMTOKENS</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry>8</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>XML_ATTRIBUTE_ENUMERATION</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry>9</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>XML_ATTRIBUTE_NOTATION</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry>10</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
<table>
|
||||
<title>DOMException constants</title>
|
||||
<tgroup cols="3">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>Constant</entry>
|
||||
<entry>Value</entry>
|
||||
<entry>Description</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>DOM_INDEX_SIZE_ERR</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry>1</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>DOMSTRING_SIZE_ERR</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry>2</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry>
|
||||
<constant>DOM_HIERARCHY_REQUEST_ERR</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry>3</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>DOM_WRONG_DOCUMENT_ERR</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry>4</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>DOM_INVALID_CHARACTER_ERR</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry>5</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>DOM_NO_DATA_ALLOWED_ERR</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry>6</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>DOM_NO_MODIFICATION_ALLOWED_ERR</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry>7</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>DOM_NOT_FOUND_ERR</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry>8</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>DOM_NOT_SUPPORTED_ERR</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry>9</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>DOM_INUSE_ATTRIBUTE_ERR</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry>10</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>DOM_INVALID_STATE_ERR</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry>11</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>DOM_SYNTAX_ERR</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry>12</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>DOM_INVALID_MODIFICATION_ERR</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry>13</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>DOM_NAMESPACE_ERR</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry>14</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>DOM_INVALID_ACCESS_ERR</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry>15</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>DOM_VALIDATION_ERR</constant>
|
||||
(<type>integer</type>)
|
||||
</entry>
|
||||
<entry>16</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
sgml-omittag:t
|
||||
sgml-shorttag:t
|
||||
sgml-minimize-attributes:nil
|
||||
sgml-always-quote-attributes:t
|
||||
sgml-indent-step:1
|
||||
sgml-indent-data:t
|
||||
indent-tabs-mode:nil
|
||||
sgml-parent-document:nil
|
||||
sgml-default-dtd-file:"../../../manual.ced"
|
||||
sgml-exposed-tags:nil
|
||||
sgml-local-catalogs:nil
|
||||
sgml-local-ecat-files:nil
|
||||
End:
|
||||
vim600: syn=xml fen fdm=syntax fdl=2 si
|
||||
vim: et tw=78 syn=sgml
|
||||
vi: ts=1 sw=1
|
||||
-->
|
||||
|
41
reference/dom/functions/dom-domattr-isid.xml
Normal file
41
reference/dom/functions/dom-domattr-isid.xml
Normal file
|
@ -0,0 +1,41 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id='function.dom-domattr-isId'>
|
||||
<refnamediv>
|
||||
<refname>DOMAttr->isId</refname>
|
||||
<refpurpose>
|
||||
Checks if attribute is a defined ID
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>DOMAttr->isId</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function checks if the attribute is a defined ID.
|
||||
</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:"../../../../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
|
||||
-->
|
41
reference/dom/functions/dom-domcharacterdata-appenddata.xml
Normal file
41
reference/dom/functions/dom-domcharacterdata-appenddata.xml
Normal file
|
@ -0,0 +1,41 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id='function.dom-domcharacterdata-appenddata'>
|
||||
<refnamediv>
|
||||
<refname>DOMCharacterData->appendData</refname>
|
||||
<refpurpose>
|
||||
Append the string to the end of the character data of the node.
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>DOMCharacterData->appendData</methodname>
|
||||
<methodparam><type>string</type><parameter>data</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Append the string <parameter>data</parameter> to the end of the character data 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:"../../../../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
|
||||
-->
|
50
reference/dom/functions/dom-domcharacterdata-deletedata.xml
Normal file
50
reference/dom/functions/dom-domcharacterdata-deletedata.xml
Normal file
|
@ -0,0 +1,50 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id='function.dom-domcharacterdata-deletedata'>
|
||||
<refnamediv>
|
||||
<refname>DOMCharacterData->deleteData</refname>
|
||||
<refpurpose>
|
||||
Remove a range of characters from the node.
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>DOMCharacterData->deleteData</methodname>
|
||||
<methodparam><type>int</type><parameter>offset</parameter></methodparam>
|
||||
<methodparam><type>int</type><parameter>count</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Deletes <parameter>count</parameter> characters starting from position
|
||||
<parameter>offset</parameter>. If the sum of <parameter>offset</parameter>
|
||||
and <parameter>count</parameter> exceeds the length, then all characters
|
||||
to the end of the data are deleted.
|
||||
</para>
|
||||
<para>
|
||||
Throws <classname>DOMExcpetion</classname> if <parameter>offset</parameter>
|
||||
is negative or greater than the number of characters in data, or if
|
||||
<parameter>count</parameter> is negative.
|
||||
</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:"../../../../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
|
||||
-->
|
46
reference/dom/functions/dom-domcharacterdata-insertdata.xml
Normal file
46
reference/dom/functions/dom-domcharacterdata-insertdata.xml
Normal file
|
@ -0,0 +1,46 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id='function.dom-domcharacterdata-insertdata'>
|
||||
<refnamediv>
|
||||
<refname>DOMCharacterData->insertData</refname>
|
||||
<refpurpose>
|
||||
Insert a string at the specified 16-bit unit offset.
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>DOMCharacterData->insertData</methodname>
|
||||
<methodparam><type>int</type><parameter>offset</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>data</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Inserts string <parameter>data</parameter> at position <parameter>offset</parameter>.
|
||||
</para>
|
||||
<para>
|
||||
Throws <classname>DOMExcpetion</classname> if <parameter>offset</parameter>
|
||||
is negative or greater than the number of 16-bit units in data.
|
||||
</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:"../../../../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
|
||||
-->
|
52
reference/dom/functions/dom-domcharacterdata-replacedata.xml
Normal file
52
reference/dom/functions/dom-domcharacterdata-replacedata.xml
Normal file
|
@ -0,0 +1,52 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id='function.dom-domcharacterdata-replacedata'>
|
||||
<refnamediv>
|
||||
<refname>DOMCharacterData->replaceData</refname>
|
||||
<refpurpose>
|
||||
Replace a substring within the DOMCharacterData node.
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>DOMCharacterData->replaceData</methodname>
|
||||
<methodparam><type>int</type><parameter>offset</parameter></methodparam>
|
||||
<methodparam><type>int</type><parameter>count</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>data</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Replace <parameter>count</parameter> characters starting from position
|
||||
<parameter>offset</parameter> with <parameter>data</parameter>. If the
|
||||
sum of <parameter>offset</parameter> and <parameter>count</parameter>
|
||||
exceeds the length, then all characters to the end of the data are
|
||||
replaced.
|
||||
</para>
|
||||
<para>
|
||||
Throws <classname>DOMExcpetion</classname> if <parameter>offset</parameter>
|
||||
is negative or greater than the number of characters in data, or if
|
||||
<parameter>count</parameter> is negative.
|
||||
</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:"../../../../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
|
||||
-->
|
|
@ -0,0 +1,49 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id='function.dom-domcharacterdata-substringdata'>
|
||||
<refnamediv>
|
||||
<refname>DOMCharacterData->substringData</refname>
|
||||
<refpurpose>
|
||||
Extracts a range of data from the node.
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>DOMCharacterData->substringData</methodname>
|
||||
<methodparam><type>int</type><parameter>offset</parameter></methodparam>
|
||||
<methodparam><type>int</type><parameter>count</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Returns the specified substring. If the sum of <parameter>offset</parameter>
|
||||
and <parameter>count</parameter> exceeds the length, then all 16-bit units
|
||||
to the end of the data are returned.
|
||||
</para>
|
||||
<para>
|
||||
Throws <classname>DOMExcpetion</classname> if <parameter>offset</parameter>
|
||||
is negative or greater than the number of 16-bit units in data, or if
|
||||
<parameter>count</parameter> is negative.
|
||||
</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:"../../../../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
|
||||
-->
|
52
reference/dom/functions/dom-domdocument-createattribute.xml
Normal file
52
reference/dom/functions/dom-domdocument-createattribute.xml
Normal file
|
@ -0,0 +1,52 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id="function.dom-domdocument-createattribute">
|
||||
<refnamediv>
|
||||
<refname>DOMDocument->createAttribute</refname>
|
||||
<refpurpose>Create new attribute</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>object</type><methodname>DOMDocument->createAttribute</methodname>
|
||||
<methodparam><type>string</type><parameter>name</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function returns a new instance of class <classname>DOMAttr</classname>.
|
||||
The name of the attribute is the value of the first parameter. This node
|
||||
will not show up in the document unless it is inserted with e.g.
|
||||
<link linkend="function.dom-domnode-appendchild">DOMNode->appendChild()</link>.
|
||||
</para>
|
||||
<para>
|
||||
The return value is &false; if an error occurred.
|
||||
</para>
|
||||
<para>
|
||||
See also <link linkend="function.dom-domdocument-createelement">DOMDocument->createElement()</link>,
|
||||
<link linkend="function.dom-domnode-appendchild">DOMNode->appendChild()</link>,
|
||||
<link linkend="function.dom-domdocument-createtextnode">DOMDocument->createTextNode()</link>,
|
||||
<link linkend="function.dom-domdocument-createcomment">DOMDocument->createComment()</link> and
|
||||
<link linkend="function.dom-domdocument-createprocessinginstruction">DOMDocument->createProcessingInstruction()</link>.
|
||||
</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:"../../../../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
|
||||
-->
|
|
@ -0,0 +1,57 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id="function.dom-domdocument-createattributens">
|
||||
<refnamediv>
|
||||
<refname>DOMDocument->createAttributeNS</refname>
|
||||
<refpurpose>
|
||||
Create new attribute node with an associated namespace
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>object</type><methodname>DOMDocument->createAttributeNS</methodname>
|
||||
<methodparam><type>string</type><parameter>namespaceURI</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>qualifiedName</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function returns a new instance of class <classname>DOMAttr</classname>.
|
||||
The tag name and prefix of the attribute is determined by the value of the
|
||||
passed parameter <parameter>qualifiedName</parameter>. The URI of the
|
||||
namespace is the value of <parameter>namespaceURI</parameter>. This node
|
||||
will not show up in the document unless it is inserted with e.g.
|
||||
<link linkend="function.dom-domnode-appendchild">DOMNode->appendChild()</link>.
|
||||
</para>
|
||||
<para>
|
||||
The return value is &false; if an error occurred.
|
||||
</para>
|
||||
<para>
|
||||
See also <link linkend="function.dom-domdocument-createelementns">DOMDocument->createElementNS()</link>,
|
||||
<link linkend="function.dom-domnode-appendchild">DOMNode->appendChild()</link>,
|
||||
<link linkend="function.dom-domdocument-createelement">DOMDocument->createElement()</link>,
|
||||
<link linkend="function.dom-domdocument-createtextnode">DOMDocument->createTextNode()</link> and
|
||||
<link linkend="function.dom-domdocument-createattribute">DOMDocument->createAttribute()</link>.
|
||||
</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:"../../../../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
|
||||
-->
|
|
@ -0,0 +1,53 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id="function.dom-domdocument-createcdatasection">
|
||||
<refnamediv>
|
||||
<refname>DOMDocument->createCDATASection</refname>
|
||||
<refpurpose>Create new cdata node</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>object</type><methodname>DOMDocument->createCDATASection</methodname>
|
||||
<methodparam><type>string</type><parameter>data</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function returns a new instance of class
|
||||
<classname>DOMCDATASection</classname>. The content of the cdata is the
|
||||
value of the passed parameter. This node will not show up in the
|
||||
document unless it is inserted with e.g.
|
||||
<link linkend="function.dom-domnode-appendchild">DOMNode->appendChild()</link>.
|
||||
</para>
|
||||
<para>
|
||||
The return value is &false; if an error occurred.
|
||||
</para>
|
||||
<para>
|
||||
See also <link linkend="function.dom-domnode-appendchild">DOMNode->appendChild()</link>,
|
||||
<link linkend="function.dom-domdocument-createelement">DOMDocument->createElement()</link>,
|
||||
<link linkend="function.dom-domdocument-createtextnode">DOMDocument->createTextNode()</link>,
|
||||
<link linkend="function.dom-domdocument-createattribute">DOMDocument->createAttribute()</link>,
|
||||
<link linkend="function.dom-domdocument-createprocessinginstruction">DOMDocument->createProcessingInstruction()</link>.
|
||||
</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:"../../../../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
|
||||
-->
|
53
reference/dom/functions/dom-domdocument-createcomment.xml
Normal file
53
reference/dom/functions/dom-domdocument-createcomment.xml
Normal file
|
@ -0,0 +1,53 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id="function.dom-domdocument-createcomment">
|
||||
<refnamediv>
|
||||
<refname>DOMDocument->createComment</refname>
|
||||
<refpurpose>Create new comment node</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>object</type><methodname>DOMDocument->createComment</methodname>
|
||||
<methodparam><type>string</type><parameter>data</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. This node will not show up in the
|
||||
document unless it is inserted with e.g.
|
||||
<link linkend="function.dom-domnode-appendchild">DOMNode->appendChild()</link>.
|
||||
</para>
|
||||
<para>
|
||||
The return value is &false; if an error occurred.
|
||||
</para>
|
||||
<para>
|
||||
See also <link linkend="function.dom-domnode-appendchild">DOMNode->appendChild()</link>,
|
||||
<link linkend="function.dom-domdocument-createelement">DOMDocument->createElement()</link>,
|
||||
<link linkend="function.dom-domdocument-createtextnode">DOMDocument->createTextNode()</link>,
|
||||
<link linkend="function.dom-domdocument-createattribute">DOMDocument->createAttribute()</link>,
|
||||
<link linkend="function.dom-domdocument-createprocessinginstruction">DOMDocument->createProcessingInstruction()</link>.
|
||||
</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:"../../../../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
|
||||
-->
|
|
@ -0,0 +1,45 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id="function.dom-domdocument-createdocumentfragment">
|
||||
<refnamediv>
|
||||
<refname>DOMDocument->createDocumentFragment</refname>
|
||||
<refpurpose>Create new document fragment</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>object</type><methodname>DOMDocument->createDocumentFragment</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function returns a new instance of class <classname>DOMAttr</classname>.
|
||||
The name of the attribute is the value of the first parameter. This node
|
||||
will not show up in the document unless it is inserted with e.g.
|
||||
<link linkend="function.dom-domnode-appendchild">DOMNode->appendChild</link>.
|
||||
</para>
|
||||
<para>
|
||||
The return value is &false; if an error occurred.
|
||||
</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:"../../../../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
|
||||
-->
|
56
reference/dom/functions/dom-domdocument-createelement.xml
Normal file
56
reference/dom/functions/dom-domdocument-createelement.xml
Normal file
|
@ -0,0 +1,56 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id="function.dom-domdocument-createelement">
|
||||
<refnamediv>
|
||||
<refname>DOMDocument->createElement</refname>
|
||||
<refpurpose>Create new element node</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>object</type><methodname>DOMDocument->createElement</methodname>
|
||||
<methodparam><type>string</type><parameter>name</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>string</type><parameter>value</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 name parameter. Optionally, a value for the new element may
|
||||
also be passed in. This node will not show up in the document unless it
|
||||
is inserted with e.g.
|
||||
<link linkend="function.dom-domnode-appendchild">DOMNode->appendChild()</link>.
|
||||
</para>
|
||||
<para>
|
||||
The return value is &false; if an error occurred.
|
||||
</para>
|
||||
<para>
|
||||
See also <link linkend="function.dom-domdocument-createelementns">DOMDocument->createElementNS()</link>,
|
||||
<link linkend="function.dom-domnode-appendchild">DOMNode->appendChild()</link>,
|
||||
<link linkend="function.dom-domdocument-createtextnode">DOMDocument->createTextNode()</link>,
|
||||
<link linkend="function.dom-domdocument-createcomment">DOMDocument->createComment()</link>,
|
||||
<link linkend="function.dom-domdocument-createattribute">DOMDocument->createAttribute()</link>,
|
||||
<link linkend="function.dom-domdocument-createprocessinginstruction">DOMDocument->createProcessingInstruction()</link>.
|
||||
</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:"../../../../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
|
||||
-->
|
58
reference/dom/functions/dom-domdocument-createelementns.xml
Normal file
58
reference/dom/functions/dom-domdocument-createelementns.xml
Normal file
|
@ -0,0 +1,58 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id="function.dom-domdocument-createelementns">
|
||||
<refnamediv>
|
||||
<refname>DOMDocument->createElementNS</refname>
|
||||
<refpurpose>
|
||||
Create new element node with an associated namespace
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>object</type><methodname>DomDocument->createElementNS</methodname>
|
||||
<methodparam><type>string</type><parameter>namespaceURI</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>qualifiedName</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function returns a new instance of class
|
||||
<classname>DOMElement</classname>. The tag name and prefix of the element
|
||||
is determined by the value of the passed parameter <parameter>qualifiedName</parameter>.
|
||||
The URI of the namespace is the value of the passed parameter
|
||||
<parameter>namespaceURI</parameter>. This node will not show up in the
|
||||
document unless it is inserted with e.g.
|
||||
<link linkend="function.dom-domnode-appendchild">DOMNode->appendChild()</link>.
|
||||
</para>
|
||||
<para>
|
||||
The return value is &false; if an error occurred.
|
||||
</para>
|
||||
<para>
|
||||
See also <link linkend="function.dom-domnode-appendchild">DOMNode->appendChild()</link>,
|
||||
<link linkend="function.dom-domdocument-createattributens">DOMDocument->createAttributeNS()</link>,
|
||||
<link linkend="function.dom-domdocument-createelement">DOMDocument->createElement()</link>,
|
||||
<link linkend="function.dom-domdocument-createattribute">DOMDocument->createAttribute()</link> and
|
||||
<link linkend="function.dom-domdocument-createcomment">DOMDocument->createComment()</link>.
|
||||
</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:"../../../../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
|
||||
-->
|
|
@ -0,0 +1,53 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id="function.dom-domdocument-createentityreference">
|
||||
<refnamediv>
|
||||
<refname>DOMDocument->createEntityReference</refname>
|
||||
<refpurpose>Create new entity reference node</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>object</type><methodname>DOMDocument->createEntityReference</methodname>
|
||||
<methodparam><type>string</type><parameter>name</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. This node will not show up in the
|
||||
document unless it is inserted with e.g.
|
||||
<link linkend="function.dom-domnode-appendchild">DOMNode->appendChild()</link>.
|
||||
</para>
|
||||
<para>
|
||||
The return value is &false; if an error occurred.
|
||||
</para>
|
||||
<para>
|
||||
See also <link linkend="function.dom-domnode-appendchild">DOMNode->appendChild()</link>,
|
||||
<link linkend="function.dom-domdocument-createelement">DOMDocument->createElement()</link>,
|
||||
<link linkend="function.dom-domdocument-createattribute">DOMDocument->createAttribute()</link> and
|
||||
<link linkend="function.dom-domdocument-createcomment">DOMDocument->createComment()</link>.
|
||||
</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:"../../../../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
|
||||
-->
|
|
@ -0,0 +1,53 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id="function.dom-domdocument-createprocessinginstruction">
|
||||
<refnamediv>
|
||||
<refname>DOMDocument->createProcessingInstruction</refname>
|
||||
<refpurpose>Creates new PI node</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>object</type><methodname>DOMDocument->createProcessingInstruction</methodname>
|
||||
<methodparam><type>string</type><parameter>target</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>string</type><parameter>data</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function returns a new instance of class
|
||||
<classname>DOMProcessingInstruction</classname>. The content of the pi is the
|
||||
value of the passed parameter. This node will not show up in the
|
||||
document unless it is inserted with e.g.
|
||||
<link linkend="function.dom-domnode-appendchild">DOMNode->appendChild()</link>.
|
||||
</para>
|
||||
<para>
|
||||
The return value is &false; if an error occurred.
|
||||
</para>
|
||||
<para>
|
||||
See also <link linkend="function.dom-domnode-appendchild">DOMNode->appendChild()</link>,
|
||||
<link linkend="function.dom-domdocument-createelement">DOMDocument->createElement()</link>,
|
||||
<link linkend="function.dom-domdocument-createattribute">DOMDocument->createAttribute()</link> and
|
||||
<link linkend="function.dom-domdocument-createcomment">DOMDocument->createComment()</link>.
|
||||
</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:"../../../../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
|
||||
-->
|
53
reference/dom/functions/dom-domdocument-createtextnode.xml
Normal file
53
reference/dom/functions/dom-domdocument-createtextnode.xml
Normal file
|
@ -0,0 +1,53 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id="function.dom-domdocument-createtextnode">
|
||||
<refnamediv>
|
||||
<refname>DOMDocument->createTextNode</refname>
|
||||
<refpurpose>Create new text node</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>object</type><methodname>DOMDocument->createTextNode</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. This node will not show up in the
|
||||
document unless it is inserted with e.g.
|
||||
<link linkend="function.dom-domnode-appendchild">DOMNode->appendChild()</link>.
|
||||
</para>
|
||||
<para>
|
||||
The return value is &false; if an error occurred.
|
||||
</para>
|
||||
<para>
|
||||
See also <link linkend="function.dom-domnode-appendchild">DOMNode->appendChild()</link>,
|
||||
<link linkend="function.dom-domdocument-createelement">DOMDocument->createElement()</link>,
|
||||
<link linkend="function.dom-domdocument-createattribute">DOMDocument->createAttribute()</link> and
|
||||
<link linkend="function.dom-domdocument-createcomment">DOMDocument->createComment()</link>.
|
||||
</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:"../../../../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
|
||||
-->
|
42
reference/dom/functions/dom-domdocument-getelementbyid.xml
Normal file
42
reference/dom/functions/dom-domdocument-getelementbyid.xml
Normal file
|
@ -0,0 +1,42 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id="function.dom-domdocument-getelementbyid">
|
||||
<refnamediv>
|
||||
<refname>DOMDocument->getElementById</refname>
|
||||
<refpurpose>Searches for an element with a certain id.</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>object</type><methodname>DOMDocument->getElementById</methodname>
|
||||
<methodparam><type>string</type><parameter>elementId</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function is similar to
|
||||
<link linkend="function.dom-domdocument-getelementsbytagname">DOMDocument->getElementsByTagName()</link>
|
||||
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.
|
||||
</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:"../../../../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
|
||||
-->
|
|
@ -0,0 +1,42 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id="function.dom-domdocument-getelementsbytagname">
|
||||
<refnamediv>
|
||||
<refname>DOMDocument->getElementsByTagName</refname>
|
||||
<refpurpose>Searches for all elements with given tag name.</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>object</type><methodname>DOMDocument->getElementsByTagName</methodname>
|
||||
<methodparam><type>string</type><parameter>name</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function returns a new instance of class
|
||||
<classname>DOMNodeList</classname> containing the elements with tagnames
|
||||
matching the name parameter. Use "*" for the name to return all elements
|
||||
within the document.
|
||||
</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:"../../../../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
|
||||
-->
|
|
@ -0,0 +1,45 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id="function.dom-domdocument-getelementsbytagnamens">
|
||||
<refnamediv>
|
||||
<refname>DOMDocument->getElementsByTagNameNS</refname>
|
||||
<refpurpose>
|
||||
Searches for all elements with given tag name in specified namespace.
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>object</type><methodname>DOMDocument->getElementsByTagNameNS</methodname>
|
||||
<methodparam><type>string</type><parameter>namespaceURI</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>localName</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function returns a new instance of class
|
||||
<classname>DOMNodeList</classname> containing the elements with tagnames
|
||||
matching the localName parameter and in the namespaceURI namespace.
|
||||
Use "*" for the name to return all elements within the document.
|
||||
</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:"../../../../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
|
||||
-->
|
42
reference/dom/functions/dom-domdocument-importnode.xml
Normal file
42
reference/dom/functions/dom-domdocument-importnode.xml
Normal file
|
@ -0,0 +1,42 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id="function.dom-domdocument-importnode">
|
||||
<refnamediv>
|
||||
<refname>DOMDocument->importNode</refname>
|
||||
<refpurpose>Import node into current document.</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>object</type><methodname>DOMDocument->importNode</methodname>
|
||||
<methodparam><type>object</type><parameter>importedNode</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>bool</type><parameter>deep</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function returns a copy of the node to import and associates it with
|
||||
the current document. <classname>DOMExcpetion</classname> is thrown if
|
||||
node cannot be imported.
|
||||
</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:"../../../../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
|
||||
-->
|
68
reference/dom/functions/dom-domdocument-load.xml
Normal file
68
reference/dom/functions/dom-domdocument-load.xml
Normal file
|
@ -0,0 +1,68 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id="function.dom-domdocument-load">
|
||||
<refnamediv>
|
||||
<refname>DOMDocument->load</refname>
|
||||
<refpurpose>
|
||||
Load XML from a file.
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>mixed</type><methodname>DOMDocument->load</methodname>
|
||||
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
The function parses the XML document in the file named
|
||||
<parameter>filename</parameter>. This function may also be called
|
||||
statically to load and create a <classname>DOMDocument</classname> object.
|
||||
The static invocation may be used when no
|
||||
<classname>DOMDocument</classname> properties need to be set prior to
|
||||
loading.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title>Creating a Document</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$doc = DOMDocument::load("filename.xml");
|
||||
print $doc->saveXML();
|
||||
|
||||
$doc = new DOMDocument();
|
||||
$doc->load("filename");
|
||||
print $doc->saveXML();
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also <link linkend="function.dom-domdocument-loadxml">DOMDocument->loadXML()</link>,
|
||||
<link linkend="function.dom-domdocument-save">DOMDocument->save()</link> and
|
||||
<link linkend="function.dom-domdocument-savexml">DOMDocument->saveXML()</link>.
|
||||
</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:"../../../../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
|
||||
-->
|
68
reference/dom/functions/dom-domdocument-loadhtml.xml
Normal file
68
reference/dom/functions/dom-domdocument-loadhtml.xml
Normal file
|
@ -0,0 +1,68 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id="function.dom-domdocument-loadhtml">
|
||||
<refnamediv>
|
||||
<refname>DOMDocument->loadHTML</refname>
|
||||
<refpurpose>
|
||||
Load HTML from a string.
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>mixed</type><methodname>DOMDocument->loadHTML</methodname>
|
||||
<methodparam><type>string</type><parameter>source</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
The function parses the HTML contained in the string <parameter>source</parameter>.
|
||||
Unlike loading XML, HTML does not have to be well-formed to load. This
|
||||
function may also be called statically to load and create a
|
||||
<classname>DOMDocument</classname> object. The static invocation may be
|
||||
used when no <classname>DOMDocument</classname> properties need to be
|
||||
set prior to loading.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title>Creating a Document</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$doc = DOMDocument::loadHTML("<html><body>Test<br></body></html>");
|
||||
print $doc->saveHTML();
|
||||
|
||||
$doc = new DOMDocument();
|
||||
$doc->loadHTML("<html><body>Test<br></body></html>");
|
||||
print $doc->saveHTML();
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also <link linkend="function.dom-domdocument-loadhtmlfile">DOMDocument->loadHTMLFile()</link>,
|
||||
<link linkend="function.dom-domdocument-savehtml">DOMDocument->saveHTML()</link> and
|
||||
<link linkend="function.dom-domdocument-savehtmlfile">DOMDocument->saveHTMLFile()</link>.
|
||||
</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:"../../../../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
|
||||
-->
|
68
reference/dom/functions/dom-domdocument-loadhtmlfile.xml
Normal file
68
reference/dom/functions/dom-domdocument-loadhtmlfile.xml
Normal file
|
@ -0,0 +1,68 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id="function.dom-domdocument-loadhtmlfile">
|
||||
<refnamediv>
|
||||
<refname>DOMDocument->loadHTMLFile</refname>
|
||||
<refpurpose>
|
||||
Load HTML from a file.
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>mixed</type><methodname>DOMDocument->loadHTMLFile</methodname>
|
||||
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
The function parses the HTML document in the file named
|
||||
<parameter>filename</parameter>. Unlike loading XML, HTML does not have
|
||||
to be well-formed to load.This function may also be called statically to
|
||||
load and create a <classname>DOMDocument</classname> object. The static
|
||||
invocation may be used when no <classname>DOMDocument</classname>
|
||||
properties need to be set prior to loading.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title>Creating a Document</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$doc = DOMDocument::loadHTMLFile("filename.html");
|
||||
print $doc->saveHTML();
|
||||
|
||||
$doc = new DOMDocument();
|
||||
$doc->loadHTMLFile("filename.html");
|
||||
print $doc->saveHTML();
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also <link linkend="function.dom-domdocument-loadhtml">DOMDocument->loadHTML()</link>,
|
||||
<link linkend="function.dom-domdocument-savehtml">DOMDocument->saveHTML()</link> and
|
||||
<link linkend="function.dom-domdocument-savehtmlfile">DOMDocument->saveHTMLFile()</link>.
|
||||
</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:"../../../../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
|
||||
-->
|
67
reference/dom/functions/dom-domdocument-loadxml.xml
Normal file
67
reference/dom/functions/dom-domdocument-loadxml.xml
Normal file
|
@ -0,0 +1,67 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id="function.dom-domdocument-loadxml">
|
||||
<refnamediv>
|
||||
<refname>DOMDocument->loadXML</refname>
|
||||
<refpurpose>
|
||||
Load XML from a string.
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>mixed</type><methodname>DOMDocument->loadXML</methodname>
|
||||
<methodparam><type>string</type><parameter>source</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
The function parses the XML contained in the string <parameter>source</parameter>.
|
||||
This function may also be called statically to load and create a
|
||||
<classname>DOMDocument</classname> object. The static invocation may be
|
||||
used when no <classname>DOMDocument</classname> properties need to be
|
||||
set prior to loading.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title>Creating a Document</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$doc = DOMDocument::loadXML("<root><node/></root>");
|
||||
print $doc->saveXML();
|
||||
|
||||
$doc = new DOMDocument();
|
||||
$doc->loadXML("<root><node/></root>");
|
||||
print $doc->saveXML();
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also <link linkend="function.dom-domdocument-load">DOMDocument->load()</link>,
|
||||
<link linkend="function.dom-domdocument-save">DOMDocument->save()</link> and
|
||||
<link linkend="function.dom-domdocument-savexml">DOMDocument->saveXML()</link>.
|
||||
</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:"../../../../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
|
||||
-->
|
41
reference/dom/functions/dom-domdocument-normalize.xml
Normal file
41
reference/dom/functions/dom-domdocument-normalize.xml
Normal file
|
@ -0,0 +1,41 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id="function.dom-domdocument-normalize">
|
||||
<refnamediv>
|
||||
<refname>DOMDocument->normalize</refname>
|
||||
<refpurpose>
|
||||
Normalizes document.
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>DOMDocument->normalize</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Normalizes document.
|
||||
</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:"../../../../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
|
||||
-->
|
48
reference/dom/functions/dom-domdocument-relaxngvalidate.xml
Normal file
48
reference/dom/functions/dom-domdocument-relaxngvalidate.xml
Normal file
|
@ -0,0 +1,48 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id="function.dom-domdocument-relaxngvalidate">
|
||||
<refnamediv>
|
||||
<refname>DOMDocument->relaxNGValidate</refname>
|
||||
<refpurpose>
|
||||
Performs relaxNG validation on the document.
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>DOMDocument->relaxNGValidate</methodname>
|
||||
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Performs relaxNG validation on the document based on the file defined by
|
||||
<parameter>filename</parameter>.
|
||||
</para>
|
||||
<para>
|
||||
See also <link linkend="function.dom-domdocument-validate">DOMDocument->validate()</link>,
|
||||
<link linkend="function.dom-domdocument-schemavalidate">DOMDocument->schemaValidate()</link>,
|
||||
<link linkend="function.dom-domdocument-schemavalidatesource">DOMDocument->schemaValidateSource()</link>
|
||||
and <link linkend="function.dom-domdocument-relaxngvalidatesource">DOMDocument->relaxNGValidateSource()</link>.
|
||||
</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:"../../../../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
|
||||
-->
|
|
@ -0,0 +1,48 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id="function.dom-domdocument-relaxngvalidatesource">
|
||||
<refnamediv>
|
||||
<refname>DOMDocument->relaxNGValidateSource</refname>
|
||||
<refpurpose>
|
||||
Performs relaxNG validation on the document.
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>DOMDocument->relaxNGValidateSource</methodname>
|
||||
<methodparam><type>string</type><parameter>source</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Performs relaxNG validation on the document based on the file defined in
|
||||
string <parameter>source</parameter>.
|
||||
</para>
|
||||
<para>
|
||||
See also <link linkend="function.dom-domdocument-validate">DOMDocument->validate()</link>,
|
||||
<link linkend="function.dom-domdocument-schemavalidate">DOMDocument->schemaValidate()</link>,
|
||||
<link linkend="function.dom-domdocument-schemavalidatesource">DOMDocument->schemaValidateSource()</link>
|
||||
and <link linkend="function.dom-domdocument-relaxngvalidate">DOMDocument->relaxNGValidate()</link>.
|
||||
</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:"../../../../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
|
||||
-->
|
69
reference/dom/functions/dom-domdocument-save.xml
Normal file
69
reference/dom/functions/dom-domdocument-save.xml
Normal file
|
@ -0,0 +1,69 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id="function.dom-domdocument-save">
|
||||
<refnamediv>
|
||||
<refname>DOMDocument->save</refname>
|
||||
<refpurpose>
|
||||
Dumps the internal XML tree back into a file
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>int</type><methodname>DOMDocument->save</methodname>
|
||||
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Creates an XML document from the dom representation. The number of bytes
|
||||
written is returned. This function is usually 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
|
||||
$doc = new DOMDocument("1.0");
|
||||
$root = $doc->createElement("HTML");
|
||||
$root = $doc->appendChild($root);
|
||||
$head = $doc->createElement("HEAD");
|
||||
$head = $root->appendChild($head);
|
||||
$title = $doc->createElement("TITLE");
|
||||
$title = $head->appendChild($title);
|
||||
$text = $doc->createTextNode("This is the title");
|
||||
$text = $title->appendChild($text);
|
||||
$doc->save("/tmp/test.xml");
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also <link linkend="function.dom-domdocument-load">DOMDocument->load()</link>,
|
||||
<link linkend="function.dom-domdocument-loadxml">DOMDocument->loadXML()</link>
|
||||
and <link linkend="function.dom-domdocument-savexml">DOMDocument->saveXML()</link>.
|
||||
</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:"../../../../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
|
||||
-->
|
71
reference/dom/functions/dom-domdocument-saveHTML.xml
Normal file
71
reference/dom/functions/dom-domdocument-saveHTML.xml
Normal file
|
@ -0,0 +1,71 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id="function.dom-domdocument-savehtml">
|
||||
<refnamediv>
|
||||
<refname>DOMDocument->saveHTML</refname>
|
||||
<refpurpose>
|
||||
Dumps the internal document into a string using HTML formatting
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>DOMDocument->saveHTML</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
|
||||
$doc = new DOMDocument("1.0");
|
||||
$root = $doc->createElement("HTML");
|
||||
$root = $doc->appendChild($root);
|
||||
$head = $doc->createElement("HEAD");
|
||||
$head = $root->appendChild($head);
|
||||
$title = $doc->createElement("TITLE");
|
||||
$title = $head->appendChild($title);
|
||||
$text = $doc->createTextNode("This is the title");
|
||||
$text = $title->appendChild($text);
|
||||
echo "<PRE>";
|
||||
echo $doc->saveHTML();
|
||||
echo "</PRE>";
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also <link linkend="function.dom-domdocument-loadhtml">DOMDocument->loadHTML()</link>,
|
||||
<link linkend="function.dom-domdocument-loadhtmlfile">DOMDocument->loadHTMLFile()</link>
|
||||
and <link linkend="function.dom-domdocument-savehtmlfile">DOMDocument->saveHTMLFile()</link>.
|
||||
</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:"../../../../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
|
||||
-->
|
69
reference/dom/functions/dom-domdocument-saveHTMLFile.xml
Normal file
69
reference/dom/functions/dom-domdocument-saveHTMLFile.xml
Normal file
|
@ -0,0 +1,69 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id="function.dom-domdocument-savehtmlfile">
|
||||
<refnamediv>
|
||||
<refname>DOMDocument->saveHTMLFile</refname>
|
||||
<refpurpose>
|
||||
Dumps the internal document back into a file using HTML formatting
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>DOMDocument->saveHTMLFile</methodname>
|
||||
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
|
||||
</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
|
||||
$doc = new DOMDocument("1.0");
|
||||
$root = $doc->createElement("HTML");
|
||||
$root = $doc->appendChild($root);
|
||||
$head = $doc->createElement("HEAD");
|
||||
$head = $root->appendChild($head);
|
||||
$title = $doc->createElement("TITLE");
|
||||
$title = $head->appendChild($title);
|
||||
$text = $doc->createTextNode("This is the title");
|
||||
$text = $title->appendChild($text);
|
||||
$doc->saveHTMLFile("/tmp/test.hmtl");
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also <link linkend="function.dom-domdocument-loadhtml">DOMDocument->loadHTML()</link>,
|
||||
<link linkend="function.dom-domdocument-loadhtmlfile">DOMDocument->loadHTMLFile()</link>
|
||||
and <link linkend="function.dom-domdocument-savehtml">DOMDocument->saveHTML()</link>.
|
||||
</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:"../../../../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
|
||||
-->
|
70
reference/dom/functions/dom-domdocument-saveXML.xml
Normal file
70
reference/dom/functions/dom-domdocument-saveXML.xml
Normal file
|
@ -0,0 +1,70 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id="function.dom-domdocument-savexml">
|
||||
<refnamediv>
|
||||
<refname>DOMDocument->saveXML</refname>
|
||||
<refpurpose>Dumps the internal XML tree back into a string</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>DOMDocument->saveXML</methodname>
|
||||
<methodparam choice="opt"><type>object</type><parameter>node</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Creates an XML document from the dom representation. This function is
|
||||
usually called after building a new dom document from scratch
|
||||
as in the example below. The
|
||||
<parameter>node</parameter> is used to output only the node rather than the entire document.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title>Creating a simple HTML document header</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$doc = new DOMDocument("1.0");
|
||||
$root = $doc->createElement("HTML");
|
||||
$root = $doc->appendChild($root);
|
||||
$head = $doc->createElement("HEAD");
|
||||
$head = $root->appendChild($head);
|
||||
$title = $doc->createElement("TITLE");
|
||||
$title = $head->appendChild($title);
|
||||
$text = $doc->createTextNode("This is the title");
|
||||
$text = $title->appendChild($text);
|
||||
echo "<PRE>";
|
||||
echo htmlentities($doc->saveXML());
|
||||
echo "</PRE>";
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also <link linkend="function.dom-domdocument-load">DOMDocument->load()</link>,
|
||||
<link linkend="function.dom-domdocument-loadxml">DOMDocument->loadXML()</link>
|
||||
and <link linkend="function.dom-domdocument-save">DOMDocument->save()</link>.
|
||||
</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:"../../../../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
|
||||
-->
|
48
reference/dom/functions/dom-domdocument-schemaValidate.xml
Normal file
48
reference/dom/functions/dom-domdocument-schemaValidate.xml
Normal file
|
@ -0,0 +1,48 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id="function.dom-domdocument-schemavalidate">
|
||||
<refnamediv>
|
||||
<refname>DOMDocument->schemaValidate</refname>
|
||||
<refpurpose>
|
||||
Validates a document based on a schema.
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>DOMDocument->schemaValidate</methodname>
|
||||
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Validates a document based on a schema defined by
|
||||
<parameter>filename</parameter>.
|
||||
</para>
|
||||
<para>
|
||||
See also <link linkend="function.dom-domdocument-schemavalidatesource">DOMDocument->schemaValidateSource()</link>,
|
||||
<link linkend="function.dom-domdocument-relaxngvalidate">DOMDocument->relaxNGValidate()</link>,
|
||||
<link linkend="function.dom-domdocument-relaxngvalidatesource">DOMDocument->relaxNGValidateSource()</link>
|
||||
and <link linkend="function.dom-domdocument-validate">DOMDocument->validate()</link>.
|
||||
</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:"../../../../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
|
||||
-->
|
|
@ -0,0 +1,48 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id="function.dom-domdocument-schemavalidatesource">
|
||||
<refnamediv>
|
||||
<refname>DOMDocument->schemaValidateSource</refname>
|
||||
<refpurpose>
|
||||
Validates a document based on a schema.
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>DOMDocument->schemaValidateSource</methodname>
|
||||
<methodparam><type>string</type><parameter>source</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Validates a document based on a schema defined in string
|
||||
<parameter>source</parameter>.
|
||||
</para>
|
||||
<para>
|
||||
See also <link linkend="function.dom-domdocument-schemavalidate">DOMDocument->schemaValidate()</link>,
|
||||
<link linkend="function.dom-domdocument-relaxngvalidate">DOMDocument->relaxNGValidate()</link>,
|
||||
<link linkend="function.dom-domdocument-relaxngvalidatesource">DOMDocument->relaxNGValidateSource()</link>
|
||||
and <link linkend="function.dom-domdocument-validate">DOMDocument->validate()</link>,.
|
||||
</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:"../../../../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
|
||||
-->
|
47
reference/dom/functions/dom-domdocument-validate.xml
Normal file
47
reference/dom/functions/dom-domdocument-validate.xml
Normal file
|
@ -0,0 +1,47 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id="function.dom-domdocument-validate">
|
||||
<refnamediv>
|
||||
<refname>DOMDocument->validate</refname>
|
||||
<refpurpose>
|
||||
Validates the document based on its DTD.
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>DOMDocument->validate</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Validates the document based on its DTD.
|
||||
</para>
|
||||
<para>
|
||||
See also <link linkend="function.dom-domdocument-schemavalidate">DOMDocument->schemaValidate()</link>,
|
||||
<link linkend="function.dom-domdocument-schemavalidatesource">DOMDocument->schemaValidateSource()</link>,
|
||||
<link linkend="function.dom-domdocument-relaxngvalidate">DOMDocument->relaxNGValidate()</link>,
|
||||
<link linkend="function.dom-domdocument-relaxngvalidatesource">DOMDocument->relaxNGValidateSource()</link>.
|
||||
</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:"../../../../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
|
||||
-->
|
41
reference/dom/functions/dom-domdocument-xinclude.xml
Normal file
41
reference/dom/functions/dom-domdocument-xinclude.xml
Normal file
|
@ -0,0 +1,41 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id="function.dom-domdocument-xinclude">
|
||||
<refnamediv>
|
||||
<refname>DOMDocument->xinclude</refname>
|
||||
<refpurpose>
|
||||
Substitutes XIncludes in a DOMDocument Object.
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>int</type><methodname>DOMDocument->xinclude</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Substitutes XIncludes in a DOMDocument 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:"../../../../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
|
||||
-->
|
44
reference/dom/functions/dom-domelement-getattribute.xml
Normal file
44
reference/dom/functions/dom-domelement-getattribute.xml
Normal file
|
@ -0,0 +1,44 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id='function.dom-domelement-getattribute'>
|
||||
<refnamediv>
|
||||
<refname>DOMElement->getAttribute</refname>
|
||||
<refpurpose>Returns value of attribute</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>DOMElement->getAttribute</methodname>
|
||||
<methodparam><type>string</type><parameter>name</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Returns the value of the attribute with name <parameter>name</parameter>
|
||||
for the current node. If no attribute with given name is found, an empty
|
||||
string is returned.
|
||||
</para>
|
||||
<para>
|
||||
See also <link linkend="function.dom-domelement-setattribute">DOMElement->setAttribute()</link>
|
||||
</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:"../../../../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
|
||||
-->
|
43
reference/dom/functions/dom-domelement-getattributenode.xml
Normal file
43
reference/dom/functions/dom-domelement-getattributenode.xml
Normal file
|
@ -0,0 +1,43 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id='function.dom-domelement-getattributenode'>
|
||||
<refnamediv>
|
||||
<refname>DOMElement->getAttributeNode</refname>
|
||||
<refpurpose>Returns attribute node</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>object</type><methodname>DOMElement->getAttributeNode</methodname>
|
||||
<methodparam><type>object</type><parameter>name</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Returns the attribute node with name <parameter>name</parameter> for the
|
||||
current element.
|
||||
</para>
|
||||
<para>
|
||||
See also <link linkend="function.dom-domelement-setattribute">DOMElement->setAttribute()</link>
|
||||
</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:"../../../../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
|
||||
-->
|
|
@ -0,0 +1,46 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id='function.dom-domelement-getattributenodens'>
|
||||
<refnamediv>
|
||||
<refname>DOMElement->getAttributeNodeNS</refname>
|
||||
<refpurpose>
|
||||
Returns attribute node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>object</type><methodname>DOMElement->getAttributeNodeNS</methodname>
|
||||
<methodparam><type>string</type><parameter>namespaceURI</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>localName</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Returns the attribute node in namespace <parameter>namespaceURI</parameter>
|
||||
with local name <parameter>localName</parameter> for the current node.
|
||||
</para>
|
||||
<para>
|
||||
See also <link linkend="function.dom-domelement-setattributenodens">DOMElement->setAttributeNodeNS()</link>
|
||||
</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:"../../../../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
|
||||
-->
|
45
reference/dom/functions/dom-domelement-getattributens.xml
Normal file
45
reference/dom/functions/dom-domelement-getattributens.xml
Normal file
|
@ -0,0 +1,45 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id='function.dom-domelement-getattributens'>
|
||||
<refnamediv>
|
||||
<refname>DOMElement->getAttributeNS</refname>
|
||||
<refpurpose>Returns value of attribute</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>DOMElement->getAttributeNS</methodname>
|
||||
<methodparam><type>string</type><parameter>namespaceURI</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>localName</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Returns the value of the attribute in namespace <parameter>namespaceURI</parameter>
|
||||
with local name <parameter>localName</parameter> for the current node.
|
||||
If no attribute with given name is found, an empty string is returned.
|
||||
</para>
|
||||
<para>
|
||||
See also <link linkend="function.dom-domelement-setattributens">DOMElement->setAttributeNS()</link>
|
||||
</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:"../../../../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
|
||||
-->
|
|
@ -0,0 +1,42 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id='function.dom-domelement-getelementsbytagname'>
|
||||
<refnamediv>
|
||||
<refname>DOMElement->getElementsByTagName</refname>
|
||||
<refpurpose>Gets elements by tagname</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>object</type><methodname>DOMElement->getElementsByTagName</methodname>
|
||||
<methodparam><type>string</type><parameter>name</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function returns a new instance of class
|
||||
<classname>DOMNodeList</classname> containing the elements with tagnames
|
||||
matching the name parameter. Use "*" for the name to return all elements
|
||||
within the document.
|
||||
</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:"../../../../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
|
||||
-->
|
|
@ -0,0 +1,43 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id='function.dom-domelement-getelementsbytagnamens'>
|
||||
<refnamediv>
|
||||
<refname>DOMElement->getElementsByTagNameNS</refname>
|
||||
<refpurpose>Get elements by namespaceURI and localName</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>object</type><methodname>DOMElement->getElementsByTagNameNS</methodname>
|
||||
<methodparam><type>string</type><parameter>namespaceURI</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>localName</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function returns a new instance of class
|
||||
<classname>DOMNodeList</classname> containing the elements in the
|
||||
namespace <parameter>namespaceURI</parameter> having localName.
|
||||
Use "*" for the name to return all elements within the document.
|
||||
</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:"../../../../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
|
||||
-->
|
40
reference/dom/functions/dom-domelement-hasattribute.xml
Normal file
40
reference/dom/functions/dom-domelement-hasattribute.xml
Normal file
|
@ -0,0 +1,40 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id='function.dom-domelement-hasattribute'>
|
||||
<refnamediv>
|
||||
<refname>DOMElement->hasAttribute</refname>
|
||||
<refpurpose>Checks to see if attribute exists</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>DOMElement->hasAttribute</methodname>
|
||||
<methodparam><type>string</type><parameter>name</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Indicates wether attribute named <parameter>name</parameter>
|
||||
exists as a member of the element.
|
||||
</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:"../../../../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
|
||||
-->
|
43
reference/dom/functions/dom-domelement-hasattributens.xml
Normal file
43
reference/dom/functions/dom-domelement-hasattributens.xml
Normal file
|
@ -0,0 +1,43 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id='function.dom-domelement-hasattributens'>
|
||||
<refnamediv>
|
||||
<refname>DOMElement->hasAttributeNS</refname>
|
||||
<refpurpose>
|
||||
Checks to see if attribute exists
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>DOMElement->hasAttributeNS</methodname>
|
||||
<methodparam><type>string</type><parameter>namespaceURI</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>localName</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Indicates wether attribute in namespace <parameter>namespaceURI</parameter>
|
||||
named <parameter>localName</parameter> exists as a member of the element.
|
||||
</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:"../../../../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
|
||||
-->
|
42
reference/dom/functions/dom-domelement-removeattribute.xml
Normal file
42
reference/dom/functions/dom-domelement-removeattribute.xml
Normal file
|
@ -0,0 +1,42 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id='function.dom-domelement-removeattribute'>
|
||||
<refnamediv>
|
||||
<refname>DOMElement->removeAttribute</refname>
|
||||
<refpurpose>Removes attribute</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>DOMElement->removeAttribute</methodname>
|
||||
<methodparam><type>string</type><parameter>name</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Removes attribute named <parameter>name</parameter> from the element.
|
||||
</para>
|
||||
<para>
|
||||
Throws <classname>DOMExcpetion</classname> if node cannot be modified.
|
||||
</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:"../../../../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
|
||||
-->
|
|
@ -0,0 +1,43 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id='function.dom-domelement-removeattributenode'>
|
||||
<refnamediv>
|
||||
<refname>DOMElement->removeAttributeNode</refname>
|
||||
<refpurpose>Removes attribute</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>DOMElement->removeAttributeNode</methodname>
|
||||
<methodparam><type>object</type><parameter>oldnode</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Removes attribute <parameter>oldnode</parameter> from the element.
|
||||
</para>
|
||||
<para>
|
||||
Throws <classname>DOMExcpetion</classname> if node cannot be modified or
|
||||
attribute is not a member of the element 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:"../../../../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
|
||||
-->
|
44
reference/dom/functions/dom-domelement-removeattributens.xml
Normal file
44
reference/dom/functions/dom-domelement-removeattributens.xml
Normal file
|
@ -0,0 +1,44 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id='function.dom-domelement-removeattributens'>
|
||||
<refnamediv>
|
||||
<refname>DOMElement->removeAttributeNS</refname>
|
||||
<refpurpose>Removes attribute</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>DOMElement->removeAttributeNS</methodname>
|
||||
<methodparam><type>string</type><parameter>namespaceURI</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>localName</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Removes attribute is namespace <parameter>namespaceURI</parameter>
|
||||
named <parameter>localName</parameter> from the element.
|
||||
</para>
|
||||
<para>
|
||||
Throws <classname>DOMExcpetion</classname> if node cannot be modified.
|
||||
</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:"../../../../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
|
||||
-->
|
62
reference/dom/functions/dom-domelement-setattribute.xml
Normal file
62
reference/dom/functions/dom-domelement-setattribute.xml
Normal file
|
@ -0,0 +1,62 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id='function.dom-domelement-setattribute'>
|
||||
<refnamediv>
|
||||
<refname>DOMElement->setAttribute</refname>
|
||||
<refpurpose>Adds new attribute</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>DOMElement->setAttribute</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
|
||||
value. If the attribute does not exist, it will be created.
|
||||
</para>
|
||||
<para>
|
||||
Throws <classname>DOMExcpetion</classname> if node cannot be modified.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title>Setting an attribute</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$doc = new DOMDocument("1.0");
|
||||
$node = $doc->createElement("para");
|
||||
$newnode = $doc->appendChild($node);
|
||||
$newnode->setAttribute("align", "left");
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also <link linkend="function.dom-domelement-getattribute">DOMElement->getAttribute()</link>
|
||||
</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:"../../../../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
|
||||
-->
|
43
reference/dom/functions/dom-domelement-setattributenode.xml
Normal file
43
reference/dom/functions/dom-domelement-setattributenode.xml
Normal file
|
@ -0,0 +1,43 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id='function.dom-domelement-setattributenode'>
|
||||
<refnamediv>
|
||||
<refname>DOMElement->setAttributeNode</refname>
|
||||
<refpurpose>Adds new attribute node to element</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>DOMElement->setAttributeNode</methodname>
|
||||
<methodparam><type>object</type><parameter>attr</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Adds new attribute node <parameter>attr</parameter> to element.
|
||||
Returns old node if attribute replaced.
|
||||
</para>
|
||||
<para>
|
||||
Throws <classname>DOMExcpetion</classname> if node cannot be modified.
|
||||
</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:"../../../../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
|
||||
-->
|
|
@ -0,0 +1,43 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id='function.dom-domelement-setattributenodens'>
|
||||
<refnamediv>
|
||||
<refname>DOMElement->setAttributeNodeNS</refname>
|
||||
<refpurpose>Adds new attribute node to element</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>DOMElement->setAttributeNodeNS</methodname>
|
||||
<methodparam><type>object</type><parameter>attr</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Adds new attribute node <parameter>attr</parameter> to element.
|
||||
Returns old node if attribute replaced.
|
||||
</para>
|
||||
<para>
|
||||
Throws <classname>DOMExcpetion</classname> if node cannot be modified.
|
||||
</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:"../../../../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
|
||||
-->
|
49
reference/dom/functions/dom-domelement-setattributens.xml
Normal file
49
reference/dom/functions/dom-domelement-setattributens.xml
Normal file
|
@ -0,0 +1,49 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id='function.dom-domelement-setattributens'>
|
||||
<refnamediv>
|
||||
<refname>DOMElement->setAttributeNS</refname>
|
||||
<refpurpose>Adds new attribute</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>DOMElement->setAttributeNS</methodname>
|
||||
<methodparam><type>string</type><parameter>namespaceURI</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>qualifiedName</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>value</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Sets an attribute with namespace <parameter>namespaceURI</parameter> and
|
||||
name <parameter>name</parameter> to the given value. If the attribute
|
||||
does not exist, it will be created.
|
||||
</para>
|
||||
<para>
|
||||
Throws <classname>DOMExcpetion</classname> if node cannot be modified.
|
||||
</para>
|
||||
<para>
|
||||
See also <link linkend="function.dom-domelement-getattributens">DOMElement->getAttributeNS()</link>
|
||||
</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:"../../../../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
|
||||
-->
|
|
@ -0,0 +1,55 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id='function.dom-domimplementation-createdocument'>
|
||||
<refnamediv>
|
||||
<refname>DOMImplementation->createDocument</refname>
|
||||
<refpurpose>
|
||||
Creates a DOM Document object of the specified type with its document element.
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>object</type><methodname>DOMImplementation->createDocument</methodname>
|
||||
<methodparam choice="opt"><type>string</type><parameter>namespaceURI</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>string</type><parameter>qualifiedName</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>object</type><parameter>doctype</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Creates a DOMDocument object of the specified type with its document element.
|
||||
If <parameter>namespaceURI</parameter>, <parameter>qualifiedName</parameter>,
|
||||
and <parameter>doctype</parameter> are null, the returned DOMDocument is
|
||||
empty with no document element
|
||||
</para>
|
||||
<para>
|
||||
Throws <classname>DOMExcpetion</classname> if there is an error with the
|
||||
namespace, as determined by <parameter>namespaceURI</parameter> and
|
||||
<parameter>qualifiedName</parameter>, or if <parameter>doctype</parameter>
|
||||
is not valid.
|
||||
</para>
|
||||
<para>
|
||||
See also <link linkend="function.dom-domimplementation-createdocumenttype">DOMImplementation->createDocumentType()</link>.
|
||||
</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:"../../../../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
|
||||
-->
|
|
@ -0,0 +1,52 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id='function.dom-domimplementation-createdocumenttype'>
|
||||
<refnamediv>
|
||||
<refname>DOMImplementation->createDocumentType</refname>
|
||||
<refpurpose>
|
||||
Creates an empty DOMDocumentType object.
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>object</type><methodname>DOMImplementation->createDocumentType</methodname>
|
||||
<methodparam choice="opt"><type>string</type><parameter>qualifiedName</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>string</type><parameter>publicId</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>string</type><parameter>systemId</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Creates an empty DOMDocumentType object. Entity declarations and notations
|
||||
are not made available. Entity reference expansions and default attribute
|
||||
additions do not occur.
|
||||
</para>
|
||||
<para>
|
||||
Throws <classname>DOMExcpetion</classname> if there is an error with the
|
||||
namespace, as determined by <parameter>qualifiedName</parameter>.
|
||||
</para>
|
||||
<para>
|
||||
See also <link linkend="function.dom-domimplementation-createdocument">DOMImplementation->createDocument()</link>.
|
||||
</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:"../../../../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
|
||||
-->
|
42
reference/dom/functions/dom-domimplementation-hasfeature.xml
Normal file
42
reference/dom/functions/dom-domimplementation-hasfeature.xml
Normal file
|
@ -0,0 +1,42 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id='function.dom-domimplementation-hasfeature'>
|
||||
<refnamediv>
|
||||
<refname>DOMImplementation->hasFeature</refname>
|
||||
<refpurpose>
|
||||
Test if the DOM implementation implements a specific feature and version.
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>DOMImplementation->hasFeature</methodname>
|
||||
<methodparam><type>string</type><parameter>feature</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>version</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Test if the DOM implementation implements a specific feature and version.
|
||||
</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:"../../../../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
|
||||
-->
|
41
reference/dom/functions/dom-domnamednodemap-getnameditem.xml
Normal file
41
reference/dom/functions/dom-domnamednodemap-getnameditem.xml
Normal file
|
@ -0,0 +1,41 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id='function.dom-domnamednodemap-getnameditem'>
|
||||
<refnamediv>
|
||||
<refname>DOMNamedNodeMap->getNamedItem</refname>
|
||||
<refpurpose>
|
||||
Retrieves a node specified by name.
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>object</type><methodname>DOMNamedNodeMap->getNamedItem</methodname>
|
||||
<methodparam><type>string</type><parameter>name</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Retrieves a node specified by <parameter>name</parameter>.
|
||||
</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:"../../../../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
|
||||
-->
|
|
@ -0,0 +1,43 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id='function.dom-domnamednodemap-getnameditemns'>
|
||||
<refnamediv>
|
||||
<refname>DOMNamedNodeMap->getNamedItemNS</refname>
|
||||
<refpurpose>
|
||||
Retrieves a node specified by local name and namespace URI.
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>object</type><methodname>DOMNamedNodeMap->getNamedItemNS</methodname>
|
||||
<methodparam><type>string</type><parameter>namespaceURI</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>localName</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Retrieves a node specified by <parameter>localName</parameter> and
|
||||
<parameter>namespaceURI</parameter>.
|
||||
</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:"../../../../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
|
||||
-->
|
40
reference/dom/functions/dom-domnamednodemap-item.xml
Normal file
40
reference/dom/functions/dom-domnamednodemap-item.xml
Normal file
|
@ -0,0 +1,40 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id='function.dom-domnamednodemap-item'>
|
||||
<refnamediv>
|
||||
<refname>DOMNamedNodeMap->item</refname>
|
||||
<refpurpose>Retrieves a node specified by index.</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>object</type><methodname>DOMNamedNodeMap->item</methodname>
|
||||
<methodparam><type>int</type><parameter>index</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Retrieves a node specified by <parameter>index</parameter> within the
|
||||
DOMNamedNodeMap 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:"../../../../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
|
||||
-->
|
64
reference/dom/functions/dom-domnode-appendchild.xml
Normal file
64
reference/dom/functions/dom-domnode-appendchild.xml
Normal file
|
@ -0,0 +1,64 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id='function.dom-domnode-appendchild'>
|
||||
<refnamediv>
|
||||
<refname>DOMNode->appendChild</refname>
|
||||
<refpurpose>
|
||||
Adds new child at the end of the children
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>object</type><methodname>DOMNode->appendChild</methodname>
|
||||
<methodparam><type>object</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. The child can be created with e.g.
|
||||
<link linkend="function.dom-domdocument-createelement">DOMDocument->createElement()</link>,
|
||||
<link linkend="function.dom-domdocument-createtextnode">DOMDocument->createTextNode()</link>
|
||||
etc. or simply by using any other node.
|
||||
</para>
|
||||
<para>
|
||||
Throws <classname>DOMException</classname> if node cannot be appended.
|
||||
</para>
|
||||
<para>
|
||||
The following example will add a new element node to a fresh document.
|
||||
<example>
|
||||
<title>Adding a child</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$doc = new DOMDocument();
|
||||
$node = $doc->createElement("para");
|
||||
$newnode = $doc->appendChild($node);
|
||||
print $doc->saveXML();
|
||||
?>
|
||||
]]>
|
||||
</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:"../../../../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
|
||||
-->
|
43
reference/dom/functions/dom-domnode-clonenode.xml
Normal file
43
reference/dom/functions/dom-domnode-clonenode.xml
Normal file
|
@ -0,0 +1,43 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id='function.dom-domnode-clonenode'>
|
||||
<refnamediv>
|
||||
<refname>DOMNode->cloneNode</refname>
|
||||
<refpurpose>
|
||||
Clones a node
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>object</type><methodname>DOMNode->cloneNode</methodname>
|
||||
<methodparam choice="opt"><type>bool</type><parameter>deep</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Creates a copy of the node. The paramter <parameter>deep</parameter>
|
||||
indicates wether to copy all descedant nodes. This paramter is
|
||||
defaulted to &false;.
|
||||
</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:"../../../../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
|
||||
-->
|
41
reference/dom/functions/dom-domnode-hasattributes.xml
Normal file
41
reference/dom/functions/dom-domnode-hasattributes.xml
Normal file
|
@ -0,0 +1,41 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id='function.dom-domnode-hasattributes'>
|
||||
<refnamediv>
|
||||
<refname>DOMNode->hasAttributes</refname>
|
||||
<refpurpose>
|
||||
Checks if node has attributes
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>DOMNode->hasAttributes</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function checks if the node has attributes.
|
||||
</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:"../../../../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
|
||||
-->
|
41
reference/dom/functions/dom-domnode-haschildnodes.xml
Normal file
41
reference/dom/functions/dom-domnode-haschildnodes.xml
Normal file
|
@ -0,0 +1,41 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id='function.dom-domnode-haschildnodes'>
|
||||
<refnamediv>
|
||||
<refname>DOMNode->hasChildNodes</refname>
|
||||
<refpurpose>
|
||||
Checks if node has children
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>DOMNode->hasChildNodes</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function checks if the node has children.
|
||||
</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:"../../../../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
|
||||
-->
|
49
reference/dom/functions/dom-domnode-insertbefore.xml
Normal file
49
reference/dom/functions/dom-domnode-insertbefore.xml
Normal file
|
@ -0,0 +1,49 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id='function.dom-domnode-insertbefore'>
|
||||
<refnamediv>
|
||||
<refname>DOMNode->insertBefore</refname>
|
||||
<refpurpose>
|
||||
Adds new child at the end of the children
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>object</type><methodname>DOMNode->insertBefore</methodname>
|
||||
<methodparam><type>object</type><parameter>newnode</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>object</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. If refnode is not supplied then
|
||||
<parameter>newnode</parameter> is appended to the children.
|
||||
</para>
|
||||
<para>
|
||||
Throws <classname>DOMException</classname> if node cannot be inserted.
|
||||
</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:"../../../../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
|
||||
-->
|
42
reference/dom/functions/dom-domnode-issamenode.xml
Normal file
42
reference/dom/functions/dom-domnode-issamenode.xml
Normal file
|
@ -0,0 +1,42 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id='function.dom-domnode-issamenode'>
|
||||
<refnamediv>
|
||||
<refname>DOMNode->isSameNode</refname>
|
||||
<refpurpose>
|
||||
Indicates if two nodes are the same node.
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>DOMNode->isSameNode</methodname>
|
||||
<methodparam><type>object</type><parameter>node</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This functions indicates if two nodes are the same node.
|
||||
The comparison is NOT based on content
|
||||
</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:"../../../../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
|
||||
-->
|
42
reference/dom/functions/dom-domnode-issupported.xml
Normal file
42
reference/dom/functions/dom-domnode-issupported.xml
Normal file
|
@ -0,0 +1,42 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id="function.dom-domdocument-issupported">
|
||||
<refnamediv>
|
||||
<refname>DOMNode->isSupported</refname>
|
||||
<refpurpose>
|
||||
Checks if feature is supported for specified version.
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>DOMNode->isSupported</methodname>
|
||||
<methodparam><type>string</type><parameter>feature</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>version</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Checks if feature is supported for specified version.
|
||||
</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:"../../../../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
|
||||
-->
|
41
reference/dom/functions/dom-domnode-lookupnamespaceuri.xml
Normal file
41
reference/dom/functions/dom-domnode-lookupnamespaceuri.xml
Normal file
|
@ -0,0 +1,41 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id='function.dom-domnode-lookupnamespaceuri'>
|
||||
<refnamediv>
|
||||
<refname>DOMNode->lookupNamespaceURI</refname>
|
||||
<refpurpose>
|
||||
Returns namespace URI of the node based on the prefix.
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>DOMNode->lookupNamespaceURI</methodname>
|
||||
<methodparam><type>string</type><parameter>prefix</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Returns namespace URI of the node based on the prefix.
|
||||
</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:"../../../../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
|
||||
-->
|
41
reference/dom/functions/dom-domnode-lookupprefix.xml
Normal file
41
reference/dom/functions/dom-domnode-lookupprefix.xml
Normal file
|
@ -0,0 +1,41 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id='function.dom-domnode-lookupprefix'>
|
||||
<refnamediv>
|
||||
<refname>DOMNode->lookupPrefix</refname>
|
||||
<refpurpose>
|
||||
Returns name space prefix of the node based on namespaceURI.
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>DOMNode->lookupPrefix</methodname>
|
||||
<methodparam><type>string</type><parameter>namespaceURI</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Returns name space prefix of the node based on namespaceURI.
|
||||
</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:"../../../../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
|
||||
-->
|
41
reference/dom/functions/dom-domnode-normalize.xml
Normal file
41
reference/dom/functions/dom-domnode-normalize.xml
Normal file
|
@ -0,0 +1,41 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id="function.dom-domnode-normalize">
|
||||
<refnamediv>
|
||||
<refname>DOMNode->normalize</refname>
|
||||
<refpurpose>
|
||||
Normalizes the node.
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>DOMNode->normalize</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Normalizes 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:"../../../../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
|
||||
-->
|
45
reference/dom/functions/dom-domnode-removechild.xml
Normal file
45
reference/dom/functions/dom-domnode-removechild.xml
Normal file
|
@ -0,0 +1,45 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id='function.dom-domnode-removechild'>
|
||||
<refnamediv>
|
||||
<refname>DOMNode->removeChild</refname>
|
||||
<refpurpose>
|
||||
Removes child from list of children
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>object</type><methodname>DOMNode->removeChild</methodname>
|
||||
<methodparam><type>object</type><parameter>oldchild</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This functions removes a child from a list of children.
|
||||
If the child could be removed the functions returns the old child.
|
||||
</para>
|
||||
<para>
|
||||
Throws <classname>DOMException</classname> if node cannot be removed.
|
||||
</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:"../../../../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
|
||||
-->
|
48
reference/dom/functions/dom-domnode-replacechild.xml
Normal file
48
reference/dom/functions/dom-domnode-replacechild.xml
Normal file
|
@ -0,0 +1,48 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id='function.dom-domnode-replacechild'>
|
||||
<refnamediv>
|
||||
<refname>DOMNode->replaceChild</refname>
|
||||
<refpurpose>
|
||||
Replaces a child
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>object</type><methodname>DOMNode->replaceChild</methodname>
|
||||
<methodparam><type>object</type><parameter>oldnode</parameter></methodparam>
|
||||
<methodparam><type>object</type><parameter>newnode</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
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 replacement succeeds the old node
|
||||
is returned.
|
||||
</para>
|
||||
<para>
|
||||
Throws <classname>DOMException</classname> if node cannot be replaced.
|
||||
</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:"../../../../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
|
||||
-->
|
42
reference/dom/functions/dom-domnodelist-item.xml
Normal file
42
reference/dom/functions/dom-domnodelist-item.xml
Normal file
|
@ -0,0 +1,42 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id='function.dom-domnodelist-item'>
|
||||
<refnamediv>
|
||||
<refname>DOMNodelist->item</refname>
|
||||
<refpurpose>
|
||||
Retrieves a node specified by index.
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>object</type><methodname>DOMNodelist->item</methodname>
|
||||
<methodparam><type>int</type><parameter>index</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Retrieves a node specified by <parameter>index</parameter> within the
|
||||
DOMNodelist 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:"../../../../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
|
||||
-->
|
|
@ -0,0 +1,43 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id='function.dom-domtext-iswhitespaceinelementcontent'>
|
||||
<refnamediv>
|
||||
<refname>DOMText->isWhitespaceInElementContent</refname>
|
||||
<refpurpose>
|
||||
Indicates whether this text node contains whitespace.
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>DOMText->isWhitespaceInElementContent</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Indicates whether this text node contains whitespace. The text node is
|
||||
determined to contain whitespace in element content during the load of the
|
||||
document.
|
||||
</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:"../../../../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
|
||||
-->
|
48
reference/dom/functions/dom-domtext-splittext.xml
Normal file
48
reference/dom/functions/dom-domtext-splittext.xml
Normal file
|
@ -0,0 +1,48 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id='function.dom-domtext-splittext'>
|
||||
<refnamediv>
|
||||
<refname>DOMText->splitText</refname>
|
||||
<refpurpose>
|
||||
Breaks this node into two nodes at the specified offset.
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>object</type><methodname>DOMText->splitText</methodname>
|
||||
<methodparam><type>int</type><parameter>offset</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Breaks this node into two nodes at the specified <parameter>offset</parameter>,
|
||||
keeping both in the tree as siblings. After being split, this node will
|
||||
contain all the content up to the <parameter>offset</parameter>. A new
|
||||
node of the same type, which contains all the content at and after the
|
||||
<parameter>offset</parameter>, is returned. If the original node had a
|
||||
parent node, the new node is inserted as the next sibling of the original
|
||||
node. When the <parameter>offset</parameter> is equal to the length of
|
||||
this node, the new node has no data.
|
||||
</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:"../../../../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
|
||||
-->
|
48
reference/dom/functions/dom-domxpath-query.xml
Normal file
48
reference/dom/functions/dom-domxpath-query.xml
Normal file
|
@ -0,0 +1,48 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id="function.dom-domxpath-query">
|
||||
<refnamediv>
|
||||
<refname>DOMXPath->query</refname>
|
||||
<refpurpose>
|
||||
Evaluates the XPath expression in the given string
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>object</type><methodname>DOMXPath->query</methodname>
|
||||
<methodparam><type>string</type><parameter>expression</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>object</type><parameter>contextnode</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Returns a DOMNodelist containing all nodes matching
|
||||
<parameter>expression</parameter>. Any expression which do not return
|
||||
nodes will return an empty DOMNodelist.
|
||||
</para>
|
||||
<para>
|
||||
The optional <parameter>contextnode</parameter> can be specified for doing
|
||||
relative XPath queries.
|
||||
</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:"../../../../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
|
||||
-->
|
43
reference/dom/functions/dom-domxpath-registernamespace.xml
Normal file
43
reference/dom/functions/dom-domxpath-registernamespace.xml
Normal file
|
@ -0,0 +1,43 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id="function.dom-domxpath-registernamespace">
|
||||
<refnamediv>
|
||||
<refname>DOMXPath->registerNamespace</refname>
|
||||
<refpurpose>
|
||||
Registers the namespace with the DOMXpath object.
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>DOMXPath->registerNamespace</methodname>
|
||||
<methodparam><type>string</type><parameter>prefix</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>namespaceURI</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Registers the <parameter>namespaceURI</parameter> and
|
||||
<parameter>prefix</parameter> with the DOMXpath 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:"../../../../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
|
||||
-->
|
155
reference/dom/reference.xml
Normal file
155
reference/dom/reference.xml
Normal file
|
@ -0,0 +1,155 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<reference id="ref.dom">
|
||||
<title>DOM Functions</title>
|
||||
<titleabbrev>DOM</titleabbrev>
|
||||
|
||||
<partintro>
|
||||
<section id="dom.intro">
|
||||
&reftitle.intro;
|
||||
<para>
|
||||
The DOM extension is the replacement for the domxml extension from PHP 4. 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.
|
||||
</para>
|
||||
</section>
|
||||
|
||||
&reference.dom.constants;
|
||||
|
||||
<section id="dom.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.
|
||||
</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>DOMAttr</entry>
|
||||
<entry>DOMNode</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DOMCDataSection</entry>
|
||||
<entry>DOMText : DOMNode</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DOMCharacterData</entry>
|
||||
<entry>DOMNode</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DOMComment</entry>
|
||||
<entry>DOMCharacterData : DomNode</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DOMDocument</entry>
|
||||
<entry>DOMNode</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DOMDocumentFragment</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>DOMNode</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DOMNotation</entry>
|
||||
<entry>DOMNode</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DOMProcessingInstruction</entry>
|
||||
<entry>DOMNode</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DOMText</entry>
|
||||
<entry>DOMCDataSection : DomNode</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DOMException</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DOMImplementation</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DOMNamedNodeMap</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DOMNodeList</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>DOMXPath</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
</para>
|
||||
</section>
|
||||
|
||||
</partintro>
|
||||
|
||||
&reference.dom.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:"../../../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