OK, I found a solution ;)
This is the right code:
set doc [dom parse $xml]
set root [$doc documentElement]
set teryt [$root selectNodes {/teryt} ]
set row [$root selectNodes /teryt/catalog/row ]
set licznik 0
set licznik_row 0
foreach node $row {...
This is not exacly what I looking for. I found a solution but they give me too much data ;/
(..)
if { [$node @name] == "OPIS" } {
foreach n [$root selectNodes {//col[@name='OPIS']/linia}] {
puts [$n asXML]
}
}
(..)
The value from <col name="OPIS"> is split from all <row>. I need draw...
Hi.
Can anybody help me resolve the problem.
This is my code:
package require tdom 0.7.5
set xml {<teryt>
<catalog date="2013-01-01" type="all" name="TERC">
<row>
<col name="WOJ">02</col>
<col name="POW"/>
<col name="GMI"/>
<col name="RODZ"/>
<col...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.