Jump to content

DomElement set_content


spongebobusa

Recommended Posts

I am not sure why I am getting this error.  DOMElement is a sublcass of DomNode.

Fatal error: Call to undefined method DOMElement::set_content()

Here is my code snippet.

[code]$var = new DomElement("name");
$var->set_content("some_content");[/code]

Thanks in advance.  I am using PHP 5.1.2 and PHP 5.1.4
Link to comment
Share on other sites

Maybe you're trying to use a DOM XML method on a DOM object?  ;D php5 no longer has the depreciated DOM XML library.

[quote=manual]Note:  This extension is no longer marked experimental. It will, however, never be released with PHP 5, and will only be distributed with PHP 4. If you need DOM XML support with PHP 5 you can use the DOM extension. This domxml extension is not compatible with the DOM extension.[/quote]
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.