note 10006 added to xml_set_object

From: Date: Wed, 06 Dec 2000 17:42:45 +0000
Subject: note 10006 added to xml_set_object
Groups: php.notes 
Request: Send a blank email to php-notes+get-8482@lists.php.net to get a copy of this message
If xml_set_object is not called in the constructor of an object, the values that the parser modifies will be saved. Else, the values do not seem to be saved as stated by "i_sofer" above. --- Start Example Code --- class foo { var xmlparser; function foo() { \\the constructor $this->xmlparser=xmlparser_create(); } function parse() { xml_set_object($this->xmlparser,&$this); \\also include data handler \\and element handlers here } } --- End Example Code --- http://www.php.net/manual/function.xml-set-object.php

« previous php.notes (#8482) next »