[PHP] Re: printing an XML node

2002-01-18 Thread Christian Stocker

In <[EMAIL PROTECTED]>, Christian Stocker
wrote:

> In <[EMAIL PROTECTED]>, 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);

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: printing an XML node

2002-01-17 Thread Christian Stocker

In <[EMAIL PROTECTED]>, 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 :)

chregu

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: printing an XML node

2002-01-17 Thread J Smith


You might want to check out php's XML extensions...

http://www.php.net/manual/en/ref.xml.php

J


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.
> 
> --
> .tom


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]