PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » XML » XML_Serializer » Bug #4115

Serialize Comments

Details

Request #4115Serialize Comments
Submitted2005-04-11 12:57 UTC
Fromigantius dot reilly at free dot fr
StatusClosed
PackageXML_Serializer
PHP VersionIrrelevant
OSirrelevant
Roadmaps(Not assigned)

Comments

[2005-04-11 12:57 UTC] igantius dot reilly at free dot fr

Description:
------------
It would be nice to be able to serialize comments inside an element.

by declaring an option "comment", like with "attributes" and "content" - and soon CDATA :-) ...
"contentName" => '_content',
"commentName" => '_comment',

Comments are useful when generating XML files for standalone use by customers. They allow to explain inline the data structure without the need for an external documentation.