XML_Serializer

From: Date: Thu, 04 Sep 2008 23:38:17 +0000
Subject: XML_Serializer
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-29232@lists.php.net to get a copy of this message
I have the following array that I'm turning into XML, I was wondering under the node, wrongeanswers, is there a way I can make each set to have a different tag than the default tag? I'd like each set to be <answer> [0] => Array ( [id] => 1 [type] => multiplication [problem] => 2 * 5 [answer] => 10 [difficulty] => easy [wronganswers] => Array ( [0] => Array ( [id] => 1 [question_id] => 1 [answer] => 7 ) [1] => Array ( [id] => 2 [question_id] => 1 [answer] => 16 ) ) ) Here's my options: // An array of serializer options $serializer_options = array ( 'addDecl' => TRUE, 'encoding' => 'ISO-8859-1', 'indent' => ' ', 'rootName' => 'questions', 'defaultTagName' => 'question', ); Thanks, Mark

« previous php.pear.general (#29232) next »