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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to read an XML file through TCL

Status
Not open for further replies.

jy7458

Programmer
Jul 30, 2002
2
US
Hi,
I have a requirement to parse an XML through TCL,I know TCL programming but don't know how to do this.Any idea/help is appriciated.
Thanks in advance
Jyothi.
 
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
 
Hi,
Thanks for the reply.
I have downloaded tclxml-2.1theta from SourceForge.net and run install script to install.Pls let me know the next steps.Any sample code would help me greatly...
Thanks in advance
Regards
Jyothi.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top