PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

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.