comp.lang.tcl
[Top] [All Lists]

Re: tdom - not understanding "nextSibling"

Subject: Re: tdom - not understanding "nextSibling"
From: chedderslam
Date: Fri, 30 May 2008 05:35:26 -0700 PDT
Newsgroups: comp.lang.tcl

If anyone is interested, here is the solution I came up with.  I had
to reference the parent node to get around the error.  My thanks to
Christian for the help.
----------------------------------------------------------------
if { $type == "ELEMENT_NODE" } {
        append returnstring $name:
    } else {
        append returnstring $value
        set parentnode [$doc parentNode]
        if { [$parentnode nextSibling] != "" } {
            append returnstring ","
        }
    }

<Prev in Thread] Current Thread [Next in Thread>
Privacy Policy