note 54035 added to function.domdocument-create-element
| From: | kozer at osu1 dot php dot net | Date: | Tue, 21 Jun 2005 18:31:44 +0000 |
| Subject: | note 54035 added to function.domdocument-create-element | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-90756@lists.php.net to get a copy of this message | ||
Does anybody have an idea what could possibly be wrong with that method? It doesn't even return
any object - it's null all the time.
I have these lines:
$newElem=$dom->create_element("VALUE");
$newElem->set_content("something");
$elemValue->append_child($newElem);
and I receive the error message:
Fatal error: Call to a member function set_content() on a non-object in
c:\usr\krasnal\www\Dyplom\ConfigManagement.php on line 75.
I tried to use create_text_node() method and it's the same.
----
Manual Page -- http://www.php.net/manual/en/function.domdocument-create-element.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+54035
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54035&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54035&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54035&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54035&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54035&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54035&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+54035&report=yes
Search -- http://master.php.net/manage/user-notes.php