> Try encoding like this: > $retval = base64_encode(serialize( domxml_open_mem( $xml ))); > and on the next page: > $xml = unserialize(base64_decode($xml)); > It works via html but don't know enough about soap
Well, you don't have to use soap - you can use sessions and get the same result. As for your suggestion, it didn't work. :( I can do a print_r() and a var_dump() on the variable before and after I serialize/encode it and get the save values each time: var_dump(): object(domdocument)(9) { ["name"]=> string(9) "#document" ["url"]=> string(0) "" ["version"]=> string(3) "1.0" ["standalone"]=> int(-1) ["type"]=> int(9) ["compression"]=> int(-1) ["charset"]=> int(1) [0]=> int(14) [1]=> int(138478176) } print_r(): domdocument Object ( [name] => #document [url] => [version] => 1.0 [standalone] => -1 [type] => 9 [compression] => -1 [charset] => 1 [0] => 14 [1] => 138478176 ) When I try to $DOMobject->dump_mem() before I serialize/encode it, I get the underlying XML. However, when I use dump_mem() afterwards, I am getting those errors mentioned in my previous post. I just don't understand why. I'm having no problems serializing and passing (through sessions or otherwise) other object, I'm just not having any luck with the internal DOM object. Chris