[Catalyst] Generating a large XML document (KML file) from a database

Lukas Thiemeier spamcatcher at thiemeier.net
Mon Nov 26 17:28:06 GMT 2012


I once had a similar problem, and solved it by using an ordinary TT View
which rendered the XML, and stashing the required resultset.

It worked fine for me, but my xml structure was very simple. It just
contained lots of data. I don't know if this is an option for you. If
your xml is very complex or dynamic, creating the templates can be a pain!

Lukas

On 11/26/2012 05:58 PM, Robert Rothenberg wrote:
> I need to output a large XML file (actually, a KML file of points) from a
> database.
> 
> I can't find any documentation for Catalyst::View::XML::Generator, or even
> decent documentation for XML::Generator, on how to do this.
> 
> It would appear to expect me to put the entire structure in the stash, which
> I don't want to do, as it could contain thousands of points.
> 
> Ideally I would pass an iterator function and it would do the rest.
> 
> 
> 
> 
> 
> 
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/




More information about the Catalyst mailing list