php-doc-en/reference/dom/functions/dom-domimplementation-createdocument.xml
2005-01-17 08:41:34 +00:00

121 lines
3.6 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.10 $ -->
<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</classname> is empty with no document element
</para>
</refsect1>
<refsect1 role="exceptions">
&reftitle.exceptions;
<para>
<variablelist>
<varlistentry>
<term><constant>DOM_WRONG_DOCUMENT_ERR</constant></term>
<listitem>
<para>
Raised if <parameter>doctype</parameter> has already been used with a
different document or was created from a different implementation.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><constant>DOM_NAMESPACE_ERR</constant></term>
<listitem>
<para>
Raised if there is an error with the namespace, as determined by
<parameter>namespaceURI</parameter> and <parameter>qualifiedName</parameter>.
</para>
</listitem>
</varlistentry>
</variablelist>
</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:
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
-->