DOMImplementation::createDocument
指定した型とドキュメント要素の DOMDocument オブジェクトを作成する
&reftitle.description;
public DOMDocumentfalseDOMImplementation::createDocument
stringnullnamespace&null;
stringqualifiedName""
DOMDocumentTypenulldoctype&null;
指定した型とドキュメント要素の DOMDocument
オブジェクトを作成します。
&reftitle.parameters;
namespace
作成するドキュメント要素の名前空間 URI。
qualifiedName
作成するドキュメント要素の修飾名。
doctype
作成するドキュメントの型、あるいは &null;。
&reftitle.returnvalues;
新しい DOMDocument オブジェクトを返します。
namespace、qualifiedName
および doctype が null の場合は、
ドキュメント要素を含まない空の DOMDocument
を返します。
&reftitle.errors;
DOM_WRONG_DOCUMENT_ERR
doctype が既に別のドキュメントで使用されていたり、
別の実装で作成されている場合に発生します。
DOM_NAMESPACE_ERR
namespace および qualifiedName
で指定した名前空間に間違いがある場合に発生します。
&dom.allowstatic;
&reftitle.changelog;
&Version;
&Description;
8.0.3
namespace は、nullable になりました。
8.0.0
doctype は、nullable になりました。
&reftitle.seealso;
DOMDocument::__construct
DOMImplementation::createDocumentType