[Tclxml-users] help: beginner
by Cedric Marchessoux other posts by this author
Nov 20 2004 1:08AM messages near this date
Re: [Tclxml-users] wrong display of not nested,emtpy divs
|
Re: [Tclxml-users] help: beginner
Hi,
I am a user of tcl/tk and vtk. I want to use tclxml in to parse xml files
and extract values of tags, I have an XML file like this:
test.xml:
<?xml version='1.0'?>
<Hello> 145590</Hello>
What I have to do if I want to parse this document and the tag Hello is in
th xml, I want to get the value ?
proc toto {Hello tata} {
global amax f
set amax $tata
$f.labela configure -text "a=$amax"
$f.valuea configure -textvariable $amax
}
set filein [open "./test.xml" r]
set parser [::xml::parser -elementstartcommand toto]
$parser parse [read $filein]
Thank you in advance,
Cédric,
Dr, Phd,
Marie Curie Fellow, post doctorate
VICTOR project
Agfa Gevaert, RDM/Physics & Analytics
+ 32 (0) 3 444 3077,
cedric.marchessoux@[...].com
http://www.marchessoux.com
-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Tclxml-users mailing list
Tclxml-users@[...].net
https://lists.sourceforge.net/lists/listinfo/tclxml-users
Thread:
Cedric Marchessoux
Steve Ball
|