downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

DOMImplementation::__construct> <DOMException
Last updated: Fri, 20 May 2011

view this page in

La clase DOMImplementation

Introducción

La interfaz DOMImplementation proporciona varios métodos para realizar operaciones que son indenpendientes de cualquier instancia en particualr del modelo de objetos del documento.

Clases sinopsis

DOMImplementation {
/* Propiedades */
/* Métodos */
DOMDocument DOMImplementation::createDocument ([ string $namespaceURI = NULL [, string $qualifiedName = NULL [, DOMDocumentType $doctype = NULL ]]] )
DOMDocumentType DOMImplementation::createDocumentType ([ string $qualifiedName = NULL [, string $publicId = NULL [, string $systemId = NULL ]]] )
bool DOMImplementation::hasFeature ( string $feature , string $version )
}

Table of Contents



add a note add a note User Contributed Notes DOMImplementation
giorgio dot liscio at email dot it 21-Jul-2010 01:26
officially, the w3 specifies that the way to access dom interfaces is through this class

so if you use

$doc = new DOMDocument("1.0", "UTF-8");

use instead:

$x = new DOMImplementation();
$doc = $x->createDocument(NULL,"rootElementName");
$doc->xmlVersion="1.0";
$doc->xmlEncoding="UTF-8";

it is not required by php's implementation, but, probably, it is a good practice

see:

http://w3.org/TR/DOM-Level-3-Core/core.html#DOMImplementation

http://w3.org/TR/DOM-Level-3-Core/core.html#DOMImplementationList

http://w3.org/TR/DOM-Level-3-Core/core.html#DOMImplementationSource

 
show source | credits | stats | sitemap | contact | advertising | mirror sites