Installation
This extension is only available if PHP was configured with
--with-dom[=DIR]. Add --with-dom-xslt[=DIR] to include DOM
XSLT support. DIR is the libxslt install directory. Add
--with-dom-exslt[=DIR] to include DOM EXSLT support, where
DIR is the libexslt install directory.
Note to Win32 Users: In order to enable this module on
a Windows environment, you must copy one additional file
from the DLL folder of the PHP/Win32 binary package to the
SYSTEM32 folder of your Windows machine (Ex: C:\WINNT\SYSTEM32
or C:\WINDOWS\SYSTEM32). For PHP <= 4.2.0 copy libxml2.dll,
for PHP >= 4.3.0 copy iconv.dll from the DLL folder to
your SYSTEM32 folder.
Deprecated functions
There are quite a few functions that do not fit into the
DOM standard and should no longer be used. These functions
are listed in the following table. The function DomNode_append_child()
has changed its behaviour. It now adds a child and not a
sibling. If this breaks your application, use the non-DOM
function DomNode_append_sibling().
Table 1. Deprecated functions and their replacements
Old function New function
xmldoc domxml_open_mem()
xmldocfile domxml_open_file()
domxml_new_xmldoc domxml_new_doc()
domxml_dump_mem DomDocument_dump_mem()
domxml_dump_mem_file DomDocument_dump_file()
DomDocument_dump_mem_file DomDocument_dump_file()
DomDocument_add_root DomDocument_create_element() followed
by DomNode_append_child()
DomDocument_dtd DomDocument_doctype()
DomDocument_root DomDocument_document_element()
DomDocument_children DomNode_child_nodes()
DomDocument_imported_node No replacement.
DomNode_add_child Create a new node with e.g. DomDocument_create_element()
and add it with DomNode_append_child().
DomNode_children DomNode_child_nodes()
DomNode_parent DomNode_parent_node()
DomNode_new_child Create a new node with e.g. DomDocument_create_element()
and add it with DomNode_append_child().
DomNode_set_content Create a new node with e.g. DomDocument_create_text_node()
and add it with DomNode_append_child().
DomNode_get_content Content is just a text node and can
be accessed with DomNode_child_nodes().
DomNode_set_content Content is just a text node and can
be added with DomNode_append_child().
|