Re: Serializing a DOM object
| From: | Chris Boget | Date: | Mon, 30 Dec 2002 16:55:39 +0000 |
| Subject: | Re: Serializing a DOM object | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-129687@lists.php.net to get a copy of this message | ||
> In the test function, if I just serialize the $xml, return it and then call
> xmldoc_open_mem on the unserialized return string, it works fine.
> But it doesn't like it if I do the above. I'm getting the error:
>
> Warning: dump_mem() [function.dump-mem]: Underlying object missing
> or of invalid type
> Warning: dump_mem() [function.dump-mem]: Cannot fetch DOM object
>
> Why isn't the serialization of the DOM object not working that way?
I just had a thought... Is it because the DOM structure of the XML document
is stored only in the memory for the page? And the pointer to that memory
isn't transferred when the DOM object is serialized, stored and retrieved?
Chris