Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

domimplementation(3) [php man page]

DOMIMPLEMENTATION(3)							 1						      DOMIMPLEMENTATION(3)

The DOMImplementation class

INTRODUCTION
The DOMImplementation interface provides a number of methods for performing operations that are independent of any particular instance of the document object model. CLASS SYNOPSIS
DOMImplementation DOMImplementation Properties Methods o DOMImplementation::__construct (void ) o public DOMDocument DOMImplementation::createDocument NULL NULL NULL ([string $namespaceURI], [string $qualifiedName], [DOMDocumentType $doctype]) o public DOMDocumentType DOMImplementation::createDocumentType NULL NULL NULL ([string $qualifiedName], [string $publicId], [string $systemId]) o public bool DOMImplementation::hasFeature (string $feature, string $version) PHP Documentation Group DOMIMPLEMENTATION(3)

Check Out this Related Man Page

DOMDOCUMENT(3)								 1							    DOMDOCUMENT(3)

The DOMDocument class

INTRODUCTION
Represents an entire HTML or XML document; serves as the root of the document tree. CLASS SYNOPSIS
DOMDocument DOMDocumentextends DOMNode Properties o readonlypublic string$actualEncoding o readonlypublic DOMConfiguration$config o readonlypublic DOMDocumentType$doctype o readonlypublic DOMElement$documentElement o public string$documentURI o public string$encoding o public bool$formatOutput o readonlypublic DOMImplementation$implementation o public bool$preserveWhiteSpacetrue o public bool$recover o public bool$resolveExternals o public bool$standalone o public bool$strictErrorCheckingtrue o public bool$substituteEntities o public bool$validateOnParsefalse o public string$version o readonlypublic string$xmlEncoding o public bool$xmlStandalone o public string$xmlVersion Methods o public DOMDocument::__construct ([string $version], [string $encoding]) o public DOMAttr DOMDocument::createAttribute (string $name) o public DOMAttr DOMDocument::createAttributeNS (string $namespaceURI, string $qualifiedName) o public DOMCDATASection DOMDocument::createCDATASection (string $data) o public DOMComment DOMDocument::createComment (string $data) o public DOMDocumentFragment DOMDocument::createDocumentFragment (void ) o public DOMElement DOMDocument::createElement (string $name, [string $value]) o public DOMElement DOMDocument::createElementNS (string $namespaceURI, string $qualifiedName, [string $value]) o public DOMEntityReference DOMDocument::createEntityReference (string $name) o public DOMProcessingInstruction DOMDocument::createProcessingInstruction (string $target, [string $data]) o public DOMText DOMDocument::createTextNode (string $content) o public DOMElement DOMDocument::getElementById (string $elementId) o public DOMNodeList DOMDocument::getElementsByTagName (string $name) o public DOMNodeList DOMDocument::getElementsByTagNameNS (string $namespaceURI, string $localName) o public DOMNode DOMDocument::importNode (DOMNode $importedNode, [bool $deep]) o public mixed DOMDocument::load (string $filename, [int $options]) o public bool DOMDocument::loadHTML (string $source, [int $options]) o public bool DOMDocument::loadHTMLFile (string $filename, [int $options]) o public mixed DOMDocument::loadXML (string $source, [int $options]) o public void DOMDocument::normalizeDocument (void ) o public bool DOMDocument::registerNodeClass (string $baseclass, string $extendedclass) o public bool DOMDocument::relaxNGValidate (string $filename) o public bool DOMDocument::relaxNGValidateSource (string $source) o public int DOMDocument::save (string $filename, [int $options]) o public string DOMDocument::saveHTML ([DOMNode $node = NULL]) o public int DOMDocument::saveHTMLFile (string $filename) o public string DOMDocument::saveXML ([DOMNode $node], [int $options]) o public bool DOMDocument::schemaValidate (string $filename, [int $flags]) o public bool DOMDocument::schemaValidateSource (string $source, [int $flags]) o public bool DOMDocument::validate (void ) o public int DOMDocument::xinclude ([int $options]) Inherited methods o public DOMNode DOMNode::appendChild (DOMNode $newnode) o public string DOMNode::C14N ([bool $exclusive], [bool $with_comments], [array $xpath], [array $ns_prefixes]) o public int DOMNode::C14NFile (string $uri, [bool $exclusive], [bool $with_comments], [array $xpath], [array $ns_prefixes]) o public DOMNode DOMNode::cloneNode ([bool $deep]) o public int DOMNode::getLineNo (void ) o public string DOMNode::getNodePath (void ) o public bool DOMNode::hasAttributes (void ) o public bool DOMNode::hasChildNodes (void ) o public DOMNode DOMNode::insertBefore (DOMNode $newnode, [DOMNode $refnode]) o public bool DOMNode::isDefaultNamespace (string $namespaceURI) o public bool DOMNode::isSameNode (DOMNode $node) o public bool DOMNode::isSupported (string $feature, string $version) o public string DOMNode::lookupNamespaceURI (string $prefix) o public string DOMNode::lookupPrefix (string $namespaceURI) o public void DOMNode::normalize (void ) o public DOMNode DOMNode::removeChild (DOMNode $oldnode) o public DOMNode DOMNode::replaceChild (DOMNode $newnode, DOMNode $oldnode) PROPERTIES
o $actualEncoding - Deprecated. Actual encoding of the document, is a readonly equivalent to $encoding. o $config - Deprecated. Configuration used when DOMDocument.normalizeDocument(3) is invoked. o $doctype -The Document Type Declaration associated with this document. o $documentElement - This is a convenience attribute that allows direct access to the child node that is the document element of the document. o $documentURI -The location of the document or NULL if undefined. o $encoding - Encoding of the document, as specified by the XML declaration. This attribute is not present in the final DOM Level 3 specifica- tion, but is the only way of manipulating XML document encoding in this implementation. o $formatOutput -Nicely formats output with indentation and extra space. o $implementation - The DOMImplementation object that handles this document. o $preserveWhiteSpace -Do not remove redundant white space. Default to TRUE. o $recover - Proprietary. Enables recovery mode, i.e. trying to parse non-well formed documents. This attribute is not part of the DOM speci- fication and is specific to libxml. o $resolveExternals - Set it to TRUE to load external entities from a doctype declaration. This is useful for including character entities in your XML document. o $standalone - Deprecated. Whether or not the document is standalone, as specified by the XML declaration, corresponds to $xmlStandalone. o $strictErrorChecking -Throws DOMException on errors. Default to TRUE. o $substituteEntities - Proprietary. Whether or not to substitute entities. This attribute is not part of the DOM specification and is specific to libxml. o $validateOnParse -Loads and validates against the DTD. Default to FALSE. o $version - Deprecated. Version of XML, corresponds to $xmlVersion. o $xmlEncoding - An attribute specifying, as part of the XML declaration, the encoding of this document. This is NULL when unspecified or when it is not known, such as when the Document was created in memory. o $xmlStandalone - An attribute specifying, as part of the XML declaration, whether this document is standalone. This is FALSE when unspecified. o $xmlVersion - An attribute specifying, as part of the XML declaration, the version number of this document. If there is no declaration and if this document supports the "XML" feature, the value is "1.0". NOTES
Note The DOM extension uses UTF-8 encoding. Use utf8_encode(3) and utf8_decode(3) to work with texts in ISO-8859-1 encoding or Iconv for other encodings. SEE ALSO
oW3C specification for Document PHP Documentation Group DOMDOCUMENT(3)
Man Page