note 16623 added to function.xml-set-object
| From: | ben-xo at php2 dot chek dot com | Date: | Wed, 07 Nov 2001 02:51:52 +0000 |
| Subject: | note 16623 added to function.xml-set-object | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-20537@lists.php.net to get a copy of this message | ||
After parse()ing some XML using a variant of the example xml object, i found that although i could
access my extra fields whilst inside the object, they appeared blank from outside. e.g.
xml.parse() (with print's inside the various functions) worked, but subsequent xml.getTitle()
or something like that where
function getTitle() { return $this->title; }
would return nothing at all. I'm sure that this has something to do with that way that the
objects are constructed, instantiated and used, but what i would really like to know is a good
workaround - I am trying to use an xml object to emulate a document with properties. (Is there is a
better way to do this...?)
--
http://www.php.net/manual/en/function.xml-set-object.php
http://master.php.net/manage/user-notes.php?action=edit+16623
http://master.php.net/manage/user-notes.php?action=delete+16623
http://master.php.net/manage/user-notes.php?action=reject+16623