Training, Open Source computer languages
PerlPHPPythonMySQLApache / TomcatTclRubyJavaC and C++LinuxCSS 
Search for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
For 2021 - online Python 3 training - see ((here)).

Our plans were to retire in summer 2020 and see the world, but Coronavirus has lead us into a lot of lockdown programming in Python 3 and PHP 7.
We can now offer tailored online training - small groups, real tutors - works really well for groups of 4 to 14 delegates. Anywhere in the world; course language English.

Please ask about private 'maintenance' training for Python 2, Tcl, Perl, PHP, Lua, etc.
TCL/Expect XML

Posted by lnxexpert (lnxexpert), 24 April 2005
Hello all,

Just looking for some good introductory TCL/Expect XML  resources. I have already found these two at: ...basic geared for Windows ...starts really deep

I have decent TCL/Expect skills but am having a hard time finding any introductory material showing me how to convert my programs to:

1) Write data taken from a user/stdin and write it to an XML file

2) Read data from an XML file and present it to a user in normal text

3) Query XML docs for specific elements

If any of you know of a TCL/Expect XML starting point I would greatly appreciate it.  

Posted by admin (Graham Ellis), 25 April 2005
I came across that seems like it might be a useful link.

As far as item (1) - writing XML - is concerned, it's probably easy enough to "roll you own".  As long as you get the tagging right (and remember to protect characters such as < within data and " within attributes if they occur) it's no great shakes.   Reading back is potentially more of an issue ....

Querying for specific elements - you're probably looking for what's known as a "SAX" parser or similar - see for example - oh, but that's a link you have already.   Basically, with a parser of thsi type you "simply" provide a proc that's to be called every time you hit the appropriate entry or exit tag.

"Presenting to the user as normal text" ... you need to decide on how it's to be formatted and you might decide to use XSLT to specity that.  There's another potential link for this at   Now XSLT is a complete language in its own right ....

This page is a thread posted to the opentalk forum at and archived here for reference. To jump to the archive index please follow this link.

You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2022: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: • WEB: • SKYPE: wellho