Re: Large XML manipulation within PHP

From: Date: Wed, 23 Apr 2008 20:36:16 +0000
Subject: Re: Large XML manipulation within PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-273493@lists.php.net to get a copy of this message
On 4/23/08, Steve Gula <sg-lists@stevegula.net> wrote: > > I work for a company that has chosen to use XML (Software AG Tamino XML > database) as its storage system for an enterprise application. We need to > make a system wide change to information within the database that isn't > feasible to do through our application's user interface. My solution was > to > unload the XML collection in question, open it, manipulate it, then write > it > back out. Problem is it's a 230+MB file and even with PHP's max mem set to > 4096MB (of 8GB available to the system) SimpleXML claims to still run out > of > memory. Can anyone recommend a better way for handling a large amount of > XML > data? Thanks. > > -- > --Steve Gula > > (this email address is used for list communications only, direct contact > at > this email address is not guaranteed to be read) > Can you chunk the data in any way, break it into smaller more managable peices? -- Bastien Cat, the other other white meat

« previous php.general (#273493) next »