Re: [PEPr] Comment on XML::XML_FastCreate

From: Date: Sat, 10 Apr 2004 04:15:31 +0000
Subject: Re: [PEPr] Comment on XML::XML_FastCreate
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-27363@lists.php.net to get a copy of this message
PE
3. XML_Util In the XML driver, that directly creates XML, please use XML_Util, which is able to build tags, comments, etc. This should be optional - The compact design of the current class is part of the beauty of it.
- just had a quick look at XML_Util - it has alot of very redundant methods.. for example: getXMLDeclaration getDocTypeDeclaration writing the sprintf manually 99% of the time would be alot clearer than using these methods.. createTag is probably one of the worst API's i've seen in pear.. - it has 8 arguments - If I see some code using this, I wont have a clue what it might be trying to do.... everything after the content should be a options array..
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.
I'd like to see a PHP version - but it needs a proper HTML parser, - the tidy extension might be an option. but I dont have a problem with the perl script being left in - with a note saying - 'it would be nice to replace this with a php version' added :) Regards Alan -- Can you help out? Need Consulting Services or Know of a Job? http://www.akbkhome.com

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