note 31462 added to ref.xml

From: Date: Tue, 22 Apr 2003 22:28:01 +0000
Subject: note 31462 added to ref.xml
Groups: php.notes 
Request: Send a blank email to php-notes+get-46957@lists.php.net to get a copy of this message
regarding jon at gettys dot org's nice XML to Object code, I've made some useful changes (IMHO) to the characterData function... my minor modifications allow multiple lines of data and it escapes quotes so errors don't occur in the eval... function characterData($parser, $data) { global $obj; $data = addslashes($data); eval($obj->tree."->data.='".$data."';"); } -- http://www.php.net/manual/en/ref.xml.php http://master.php.net/manage/user-notes.php?action=edit+31462 http://master.php.net/manage/user-notes.php?action=delete+31462 http://master.php.net/manage/user-notes.php?action=reject+31462

« previous php.notes (#46957) next »