RE: [PEAR-DEV] XML_Functions
| From: | Stephan Schmidt | Date: | Wed, 31 Mar 2004 14:28:25 +0000 |
| Subject: | RE: [PEAR-DEV] XML_Functions | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-26893@lists.php.net to get a copy of this message | ||
Hi,
> This method make a valid XML contents.
It does not in the code you are currently using.
You should replace &, <, >, ' and " with their respective entities or
use XML_Util to create the tags.
> I have put theses lines into the Functions.php file (with the
> class), is
> you think is a good way ? or is theses lines *must* always add by the
> developpers in each php files ?
I don't think, that the developer should do this.
IMHO I do not think that this should be added to PEAR. You can easily
create XML tags with XML_Util or use XML_Serializer for this.
All this package does is mapping the method name to a tag name, the rest
can be done with existing packages.
Just my 2 cts.
Stephan