Re: printing an XML node

From: Date: Fri, 18 Jan 2002 12:43:40 +0000
Subject: Re: printing an XML node
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-81071@lists.php.net to get a copy of this message
In <pan.2002.01.17.23.27.15.709215.2549@chregu.tv>, Christian Stocker wrote: > In <3C4721F5.C6A96637@ix.netcom.com>, Thomas Gagne wrote: > >> 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. > > it's not possible at the moment, but there's a libxml-function, which > does exactly that. if i find some time, i will implement it in the not > so distant future :) ok. did it. it's in cvs now. $string = domxml_dump_node($docobject,$nodeobj); or $string = $docobject->dump_node($nodeobj);

« previous php.general (#81071) next »