Re: Planning to create Array -> XML extension

From: Date: Mon, 14 Jul 2008 21:12:21 +0000
Subject: Re: Planning to create Array -> XML extension
References: 1 2 3  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-5618@lists.php.net to get a copy of this message
On Tue, Jul 15, 2008 at 12:55 AM, Dmitry Koterov <dmitry@koterov.ru> wrote: > Thank you for your answer! > > No, I'm looking a library not for a cross-platform > serialization/deserialization. The idea is simpler. > > I need to convert PHP arrays to XML to feed the result into XSLT processor. > So, PHP code does not generate XML, it generates simple and plain arrays, > and these arrays are converted to XML to be used in XSLT MVC templating > system. XML is transparent in this case: it is used, but is never generated > manually and is not visible explicitly. > > Manual Array-to-XML convertarion (using PHP foreach'es or even XMLWriter) is > too slow and becomes the bottleneck. I hope that PHP extension for > Array-to-XML will solve this bottleneck. It might, if that really IS a problem. I think, you will start to notice difference if arrays contain 1000+ elements. -- Alexey Zakhlestin http://blog.milkfarmsoft.com/

« previous php.pecl.dev (#5618) next »