2006-10-07 11:23:54 +02:00
|
|
|
PEAR::XML_Serializer serializes complex data structures like arrays
|
|
|
|
or object as XML documents.
|
2005-06-07 15:22:54 +02:00
|
|
|
|
2006-10-07 11:23:54 +02:00
|
|
|
This class helps you generating any XML document you require without
|
|
|
|
the need for DOM.
|
2005-06-07 15:22:54 +02:00
|
|
|
|
2006-10-07 11:23:54 +02:00
|
|
|
Furthermore this package can be used as a replacement to serialize()
|
|
|
|
and unserialize() as it comes with a matching XML_Unserializer that
|
|
|
|
is able to create PHP data structures (like arrays and objects)
|
|
|
|
from XML documents, if type hints are available.
|
2005-06-07 15:22:54 +02:00
|
|
|
|
2006-10-07 11:23:54 +02:00
|
|
|
If you use the XML_Unserializer 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.
|
2004-11-27 06:41:59 +01:00
|
|
|
|
2006-10-07 11:23:54 +02:00
|
|
|
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.
|
2004-11-27 06:41:59 +01:00
|
|
|
|
2006-10-07 11:23:54 +02:00
|
|
|
Since version 0.8.0 the package is able to treat XML documents
|
|
|
|
similar to the simplexml extension of PHP 5.
|
2003-09-08 04:30:58 +02:00
|
|
|
|
2004-04-10 00:04:18 +02:00
|
|
|
WWW: http://pear.php.net/package/XML_Serializer/
|