AW: [PEAR-DEV] [RfC] XML_Serializer

From: Date: Wed, 30 Jul 2003 19:59:14 +0000
Subject: AW: [PEAR-DEV] [RfC] XML_Serializer
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-18976@lists.php.net to get a copy of this message
Hi, > $array = array('nodes' => array('node1' => 10, 'node2' > => > 20)); $conf = new Config(); $root =& > $conf->parseConfig($array, 'phparray'); echo $root->toString('xml'); OK, I admit, that's quite easy... I would recommend that you change Config, so it's able to store type information in XML files. It's nice to know if a value is false or zero... Did you take a look at patConfiguration? It's an XML based config class and can be downloaded from http://www.php-tools.net, there I use a define tag to specify the types of the values... > You get my +1, my preference would go for XML_Common instead > of XML or XML_Util, just like it is with HTML_Common. I thought of this, too. But HTML_Common is more like a base class for other HTML_* and that's not what XML_Util is for... So people might get a bit confused... Stephan

« previous php.pear.dev (#18976) next »