[ANNOUNCEMENT] XML_Serializer-0.8 (beta) Released.

From: Date: Tue, 23 Sep 2003 08:57:37 +0000
Subject: [ANNOUNCEMENT] XML_Serializer-0.8 (beta) Released.
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-7990@lists.php.net to get a copy of this message
The new PEAR package XML_Serializer-0.8 (beta) has been released at http://pear.php.net/. Release notes ------------- XML_Serializer: * added option: scalarAsAttribute to create tags with attributes from an array or object, * added option: prependAttributes to enable a prepend string for attributes (ensure they are different from type hints), * added option: attributeIndent to allow multiline tags, if a tag has several attributes; this makes it easier to read (requested by Yavor Shahpasov), * now requires XML_Util 0.4.1 or newer, * added option: mode => simplexml, allows you to serialize indexed arrays like simpleXML of PHP5 does: tags use name of the parent structure and are in the same depth (this is still in alpha state, not thoroughly tested) XML_Unserializer: * added option: parseAttributes which allows you to parse tags with attributes, * added option: attributesArray to specify the name of the array in which attributes should be stored, * added option: prependAttributes to specify a prepend string for the generated array keys, * added option: contentName to specify the key for the content of a tag that contains also attributes * added option: tagMap, to change the names of the tags while parsing Both: * removed bug that occured when instantiating w/o options (reported by Alan Knowles), * added options: keyAttribute, typeAttribute and classAtribute to allow user to specify attribute names for typehints, * added resetOptions(), * added setOption(), * added option: overrideOptions that allows you to reset to defaults for one call of serialize or unserialize, * added some very small docs to defaultOptions arrays Package Info ------------- XML_Serializer serializes complex data structures like arrays or object as XML documents. This class helps you generating any XML document you require without the need for DOM. Furthermore this package can be used as a replacement to serialize() und unserialize() as it comes with a matching XML_Unserializer that is able to create PHP data strcutures (like arrays and objects) from XML documents, if type hints are available. If you use the XML_Unserialzer on standard XML files, it will try to guess how it has to be unserialized. In most cases it does exactly what you expect it to do. Try reading a RSS file with XML_Unserializer and you have the whole RSS file in a structured array or even a collection of objects, similar to XML_RSS. Since version 0.8 the package is able to treat XML documents like the simplexml extension of PHP 5. Related Links ------------- Package home: http://pear.php.net/package/XML_Serializer Changelog: http://pear.php.net/package-changelog.php?package=XML_Serializer Download: http://pear.php.net/get/XML_Serializer-0.8.tgz Authors ------------- Stephan Schmidt <schst@php.net> (lead)

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