Mark Wilson I am the creator of TopXML. I am available for international and local (Australia) contracts. I am a Solution Architect/Business Analyst. I have worked in IT in several countries (NZ, Australia, South Africa, UK) building and training teams for government and very large non-governmental organizations. I am ex-Microsoft Consulting Services. I wrote the first book on Microsoft XML published in 2000 called XML Programming with VB and ASP. Most recently I have been building tools for the SEO industry. Ask me for a 37 point SEO health-checkup for your website.
First posted :
03/24/2008
Times viewed :
243
DOMImplementation Function createDocument
PHP Version: (No version information might be only in CVS. I have used this function
in PHP5)
DOM: W3C
DOM Level 1
Description
This function creates an instance of the DomDocument object.
Creates a DOMDocument object of the specified type with its document
element. If namespaceURI,
qualifiedName, and doctype
are null, the returned DOMDocument is empty with no
document element
Throws DOMException if there is an error with the namespace, as
determined by namespaceURI and qualifiedName, or if doctype
is not valid.
PHP
Code:
<?php
// Create an instance of the DomImplementation
class
$impl = new DomImplementation;
// Create an instance of the DomDocumentType
class by
//
calling the DomImplementation::createDocumentType() method