Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DOM Functions

Status
Not open for further replies.

tswitz00

IS-IT--Management
Jan 26, 2005
67
US
I am having trouble using DOM functions with php-4.3.11.
I have DOM/XML enabled but when I try to run a simple test script

Code:
$dom = new DOMDocument('1.0', 'iso-8859-1');

$element = $dom->createElement('test', 'This is the root element!');

// We insert the new element as root (child of the document)
$dom->appendChild($element);

echo $dom->saveXML();

I get: Call to undefined function: createelement()
 
Sounds to me like you're using domxml, and not the DOM extension ... but that's just me.

Greg

"for me, the action is the juice.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top