c.vlug - 2011-05-16 13:49:54
Hi, the xml writer class is a very usefull class, but it uses a lot of memory. I use it for generating an xml sitemap for google. her is some sample xml:
<?xml version="1.0" encoding="UTF-8"?>
<urlset>
<url>
<loc>http://www.somewebsite.nl/</loc>
<priority>1</priority>
<changefreq>daily</changefreq>
<lastmod>2011-05-15T16:38:35+00:00</lastmod>
</url>
<url>
<loc>http://www.somewebsite.nl/index.php</loc>
<priority>1</priority>
<changefreq>daily</changefreq>
<lastmod>2011-05-15T16:38:35+00:00</lastmod>
</url>
</urlset>
when i make an xml documnent with 100.000 url.s the class consumes 400 mb.
i need to make an xml document with 400.000 urls, but i get memory erros, because xml writer class consumes too much memory.
i can't raise php's memory limit moren then 1 or 2 gb
Is there a solution?
regards,
Charles