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

tdom - not understanding "nextSibling"

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

I have a simple xml document:
<recordset>
 <division name="myname">
  <coe_division_name>MISSISSIPPI VALLEY</coe_division_name>
  <division_abbreviation>MVD</division_abbreviation>
 </division>
</recordset>

Whe I am parsing it and get to the node:
<coe_division_name>MISSISSIPPI VALLEY</coe_division_name>
I am running this code:
set myvar [$doc nextSibling]
however, the result is blank.

What would constitute a sibling?  How can I check if there is another
element on the same level of nesting right after the current element?

Thank you.

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