| 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> |
|---|---|---|
| ||
| Previous by Date: | Re: merging variables and arrays ..., Andreas Leitgeb |
|---|---|
| Next by Date: | Re: merging variables and arrays ... conflicting with cloverfield?, Uwe Klein |
| Previous by Thread: | Re: tdom - not understanding "nextSibling", chedderslam |
| Next by Thread: | kruBibkdtgrUy, Gartman6 |
| Indexes: | [Date] [Thread] [Top] [All Lists] |