function getNodeContent ($node) {
    $content = '';
    $nodechild = $node->children();
    if ( is_array( $nodechild ) ) {
        reset ($nodechild);
        while (list (, $val) = each ($nodechild)) {
            if ( $val->type == XML_TEXT_NODE ) {
             $content .= $val->content;
            }
        }
        return $content;
    }
}

Peter


"Aaron" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> How the hell do I get the content of a node....
>
> before all I had to do was go $node->content
>
> now it doesnt seem to work.
>
> I know they changed $node->name to $node->tagname.
>
> I tried, content, tagcontent, value, mmm some other things. I give up,
> couldnt find any info anywhere either...
>
> theres a set_content() method but doenst seem to be a get_content()
> method :(.
>


-- 
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]

Reply via email to