The easiest thing to do is download one of the Tcl extensions for parsing and processing XML information. You can get an overview of XML in the Tcl world on the Tcl'ers Wiki (
starting with the page "XML,"
One option is tDOM, which is written in C and quite fast. (It claims to be faster than Java DOM implementations by an order of magnitude, though I haven't put it to the test.) It includes both SAX- and DOM-based parsing, as well as XPATH and XSLT support. You can read more about tDOM and find out where to obtain it from the Wiki page "tDOM,"
The other option is the TclXML, TclDOM, and TclXSLT packages. TclXML provides the SAX-like parser; TclDOM (which requires TclXML) provides the DOM-based parser; and TclXSLT (which requires TclDOM) provides XSLT processing. The advantage to this suite of packages is that they are implemented in Tcl, and thus require no compilation and are easily installed on most systems. You can read more about these packages from the Wiki pages "TclXML" (
"TclDOM" (
and "TclXSLT" (
- Ken Jones, President, ken@avia-training.com
Avia Training and Consulting,
866-TCL-HELP (866-825-4357) US Toll free
415-643-8692 Voice
415-643-8697 Fax