Sure, documents can call dumpmem(), but there's no way to get the XML of a
node.
Until now!
Not knowing at all what I was doing, I copied code from the function
unlink_node and modified it to call xmlDumpNode(). It works for me, though I
expect there's probably a memory leak in it since I don't
dumpmem works great for entire documents, but what is the strategy for
printing the contents of a single node? It is impossible to use dumpmem on a
node since the code looks for a 'doc' property that doesn't exist in nodes.
--
.tom
--
PHP General Mailing List (http://www.php.net/)
To unsubs
2 matches
Mail list logo