<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<refentry xml:id='domimplementation.createdocument' xmlns="http://docbook.org/ns/docbook">
 <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;
  <methodsynopsis>
   <type>DOMDocument</type><methodname>DOMImplementation::createDocument</methodname>
   <methodparam choice="opt"><type>string</type><parameter>namespaceURI</parameter><initializer>&null;</initializer></methodparam>
   <methodparam choice="opt"><type>string</type><parameter>qualifiedName</parameter><initializer>&null;</initializer></methodparam>
   <methodparam choice="opt"><type>DOMDocumentType</type><parameter>doctype</parameter><initializer>&null;</initializer></methodparam>
  </methodsynopsis>
  <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="errors">
  &reftitle.errors;
  <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><methodname>DOMDocument::__construct</methodname></member>
    <member><methodname>DOMImplementation::createDocumentType</methodname></member>
   </simplelist>
  </para>
 </refsect1>
</refentry>

<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->