Re: [RfC] XML_Serializer, XML_Util

From: Date: Tue, 29 Jul 2003 14:35:53 +0000
Subject: Re: [RfC] XML_Serializer, XML_Util
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-18891@lists.php.net to get a copy of this message
On Tue Jul 29, 2003 at 03:1323PM +0200, Stephan Schmidt wrote: > As this package grows, I think it would be wise to put some common methods, > that can be used by other XML_* packages in a new package called XML_Util > (name could be changed, of course). This package offers static methods to > replace XML entites (<,>,&,',") in a string, to convert an associative > array > into an attributes string, and to do some other common tasks. These methods > are needed by a lot of classes and including them in every package is > redundant and produces errors (e.g XML_Transformer_Util::attributesToString > does not replace entities in the attribute values, which could produce XML > that's not well-formed. Sounds good except for the name which I don't really like. > Furthermore I'd like to hear your comments on another subject: > Should there be two packages: XML_Serializer and XML_Unserializer or if I > should include both classes in one package. They should be in one package. -- - Martin Martin Jansen http://martinjansen.com/

« previous php.pear.dev (#18891) next »