Re: [PEPr] Comment on XML::XML_FastCreate
| From: | Guillaume Lecanu | Date: | Sat, 10 Apr 2004 15:07:26 +0000 |
| Subject: | Re: [PEPr] Comment on XML::XML_FastCreate | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-27392@lists.php.net to get a copy of this message | ||
Le ven 09/04/2004 à 21:18, PEPr a écrit :
> Stephan Schmidt (http://pear.php.net/user/schst) has commented on the proposal for
> XML::XML_FastCreate.
>
> Comment:
>
> Hi,
>
> basically I like the changes you made, and now the packages makes sense to me. But I'd
> like you to make some adjustments:
>
> 1. Error management
> Please use PEAR::raiseError() to trigger errors instead of implementing your own error
> management.
Ok i will do that.
>
> 2. Drivers
> Please implement two different drivers for the output. You should implement a factory, like a
> lot of other packages do (see DB for an example). This has two advantages:
> If I do not need XML_Tree output, the code that has to be parsed is smaller. And your package
> can easily be extended by providing new drivers for DOM, simpleXML, etc.
Ok
>
> 3. XML_Util
> In the XML driver, that directly creates XML, please use XML_Util, which is able to build tags,
> comments, etc.
Add a package dependencie rather a little function ?
If making tag would be very difficult or more complex than 10 lines of
code, ok but it isn't the case.
I think is more interresting to keep theses few lines...
>
> And a wish: please provide the perl script also as PHP script. This is especially useful for
> Windows users, as they probably haven't Perl installed.
Ok you are right.
I will do that, but i think is loose time because windows users rarely
use vim ..
>
> If you could implement these changes, I think the package is great!
Thanks you for your interest :)
>
> Stephan
>
> Proposal information:
> http://pear.php.net/pepr/pepr-proposal-show.php?id=47