ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> Tclxml-users
Tclxml-users
[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

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved