Document DOMImplementation::createXX()

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@175687 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Mehdi Achour 2004-12-27 16:32:34 +00:00
parent 2c487165fe
commit 6b964056ba
2 changed files with 164 additions and 71 deletions

View file

@ -1,41 +1,88 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.6 $ -->
<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>
&reftitle.description;
<classsynopsis>
<ooclass><classname>DOMImplementation</classname></ooclass>
<methodsynopsis>
<type>DOMDocument</type>
<methodname>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>DOMDocumentType</type><parameter>doctype</parameter></methodparam>
</methodsynopsis>
</classsynopsis>
<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>DOMException</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>
<!-- $Revision: 1.7 $ -->
<refentry id='function.dom-domimplementation-createdocument'>
<refnamediv>
<refname>DOMImplementation->createDocument()</refname>
<refpurpose>
Creates a DOMDocument object of the specified type with its document element
</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<classsynopsis>
<ooclass><classname>DOMImplementation</classname></ooclass>
<methodsynopsis>
<type>DOMDocument</type>
<methodname>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>DOMDocumentType</type><parameter>doctype</parameter></methodparam>
</methodsynopsis>
</classsynopsis>
<para>
Creates a <classname>DOMDocument</classname> object of the specified type
with its document element.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>namespaceURI</parameter></term>
<listitem>
<para>
The namespace URI of the document element to create.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>qualifiedName</parameter></term>
<listitem>
<para>
The qualified name of the document element to create.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>doctype</parameter></term>
<listitem>
<para>
The type of document to create or &null;.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
A new <classname>DOMDocument</classname> object. If
<parameter>namespaceURI</parameter>, <parameter>qualifiedName</parameter>,
and <parameter>doctype</parameter> are null, the returned
<classname>DOMDocument</classnale> is empty with no document element
</para>
</refsect1>
<refsect1 role="exceptions">
&reftitle.exceptions;
<para>
Throws <classname>DOMException</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>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><xref linkend="function.dom-domdocument-construct" /></member>
<member><xref linkend="function.dom-domimplementation-createdocumenttype" /></member>
</simplelist>
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:

View file

@ -1,38 +1,84 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.6 $ -->
<refentry id='function.dom-domimplementation-createdocumenttype'>
<refnamediv>
<refname>DOMImplementation->createDocumentType</refname>
<refpurpose>
Creates an empty DOMDocumentType object
</refpurpose>
</refnamediv>
<refsect1>
&reftitle.description;
<classsynopsis>
<ooclass><classname>DOMImplementation</classname></ooclass>
<methodsynopsis>
<type>DOMDocumentType</type>
<methodname>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>
</classsynopsis>
<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>DOMException</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>
<!-- $Revision: 1.7 $ -->
<refentry id='function.dom-domimplementation-createdocumenttype'>
<refnamediv>
<refname>DOMImplementation->createDocumentType()</refname>
<refpurpose>
Creates an empty DOMDocumentType object
</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<classsynopsis>
<ooclass><classname>DOMImplementation</classname></ooclass>
<methodsynopsis>
<type>DOMDocumentType</type>
<methodname>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>
</classsynopsis>
<para>
Creates an empty <classname>DOMDocumentType</classname> object. Entity
declarations and notations are not made available. Entity reference
expansions and default attribute additions do not occur.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>qualifiedName</parameter></term>
<listitem>
<para>
The qualified name of the document type to create.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>publicId</parameter></term>
<listitem>
<para>
The external subset public identifier.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>systemId</parameter></term>
<listitem>
<para>
The external subset system identifier.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
A new <classname>DOMDocumentType</classname> node with its
<literal>ownerDocument</literal> set to &null;.
</para>
</refsect1>
<refsect1 role="exceptions">
&reftitle.exceptions;
<para>
Throws <classname>DOMException</classname> if there is an error with the
namespace, as determined by <parameter>qualifiedName</parameter>.
</para>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><xref linkend="function.dom-domimplementation-createdocument" /></member>
</simplelist>
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables: