Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tcl/Tk and XML...

Status
Not open for further replies.

Anto35

Technical User
May 16, 2002
25
0
0
FR
Hi,

I want to know if a widget which can display XML files on screen exists. I don't know if TkHTML widget is able to diplay such files...

I'm also looking for some tutorials on tDOM, TclDOM, and TclXML.

Thanks.
 
I have also problem with tclXML:

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)?

Thanks,
Bigman74
 
The rest of the error message is what I need
to diagnose the buggy piece of code.
 
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)
$

Bigmann74
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top