At the moment, I am faced with the task of processing an XML file using tclxml and tcldom. I did a search on the Internet, and found the following example program:
(wiki.tcl.tk/1950):
Unfortunately, when I run this program, I get the following error
message:
$ example11.tcl
list must have an even number of elements
while executung...
....
....
I searched through the following files
../../Tcldom2.6/domimpl.tcl
../../Tcldom2.6/xmlswitch.tcl
but that didn't yield anything useful.
Can you now help me with the following questions?
a) Is this a bug I'm running into?
b) Am I doing something wrong?
c) Where could I find more examples or online documents
(besides zweno.com, which I already know about)?
sorry, i forgot it. Now here is the error message:
$ deneme11.tcl
list must have an even number of elements
while executing
"array set node [set $token]"
(procedure "dom::tcl::element" line 5)
invoked from within
"dom::tcl::elementgetElementsByTagName ::dom::tcl::document2search10 PostingURL "
invoked from within
"dom::element getElementsByTagName $sr PostingURL"
invoked from within
"set purl [dom::element getElementsByTagName $sr PostingURL]"
(file "deneme11.tcl" line 28)
$
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.