Re: serializing DomDocument objects.

From: Date: Fri, 26 Sep 2003 09:12:12 +0000
Subject: Re: serializing DomDocument objects.
References: 1 2  Groups: php.xml.dev 
Request: Send a blank email to php-xml-dev+get-208@lists.php.net to get a copy of this message
On Fri, 26 Sep 2003 10:00:49 +0200, Christian Stocker wrote: > > > On 9/26/03 9:52 AM, neill wrote: >> Hi all. I was just wondering why my attempts to serialize DomDocument >> objects have failed? Is this a bug, or am I doing something wrong? > > what does serializing exactly mean for you? > > $serializedxml = $domdocument->saveXML(); > > should serialize it to a string. i want to serialize the object, not the XML. I have a couple of XML documents that are made into DomDocument objects on each request to my framework. I was hoping to serialize these objects using serialize() so that I wouldn't have to create the DomDocuments each time. Just unserialize() them - which should be a lot faster. Maybe I'm not explaining this very well. riot.

« previous php.xml.dev (#208) next »