[PHP-DEV] RE: Bug #15530 Updated: conent of node node correct reading new DOM value after set_content of node

2002-02-13 Thread Joseph Tate
Ok, try the following code: function getContent ($n) { if (!($children = $n-children())) return ''; $content = ''; foreach ($children as $c) { if ($c-type == XML_TEXT_NODE) { $content .= $c-content; } } return $content; } Then use getContent($n)

[PHP-DEV] Re: Bug #15530 Updated: conent of node node correct reading new DOM value after set_content of node

2002-02-13 Thread Rob Richards
Thanks, but same results. when I put the example code up there I also was thinking who would ever need to set and then read the same information. Unfortunately our real case scenario runs into this. Just for reference: We have a complex workflow, so have no idea where we are in the workflow we

Re: [PHP-DEV] Re: Bug #15530 Updated: conent of node node correct reading new DOM value after set_content of node

2002-02-13 Thread Markus Fischer
Well, as far as I understand, the content thing is not compltely imlpemented (there's even a note about this in the source). Sadly, no time currently to fix it. - Markus On Wed, Feb 13, 2002 at 12:11:58PM -0500, Rob Richards wrote : Thanks, but same results. when I put the