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

Re: tdom - not understanding "nextSibling"

Subject: Re: tdom - not understanding "nextSibling"
From: chedderslam
Date: Thu, 29 May 2008 14:54:39 -0700 PDT
Newsgroups: comp.lang.tcl

I made the change as you suggested like this:
----------------------------------------
if { $type == "ELEMENT_NODE" } {
        append returnstring $name:
        if { [$doc nextSibling] != "" } {
            append returnstring ","
        }
    } else {
        append returnstring $value

    }
----------------------------------------

however the output from the proc is this:
{recordset:{division:{coe_division_name:,MISSISSIPPI
VALLEYdivision_abbreviation:MVD}}}

Which is putting the comma in the wrong place.  It should be after
"MISSISSIPPI VALLEY", not before.

I guess I'll play with it some more.  Right now I'm not sure exactly
what constitutes an element node.

Thank you for the help.

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