[PHP] domxml: getting a node's XML (using xmlDumpNode)

2002-01-21 Thread Thomas Gagne
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

[PHP] printing an XML node

2002-01-17 Thread Thomas Gagne
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