magazine resources subscribe about advertising

New Architect Daily
Commentary and updates on current events and technologies

CMP Media E-Book

Download your copy today.

Research
Search for reports and white papers from industry vendors and analysts.

This Week at NewArchitect.com Subscribe now to our free email newsletter and get notified when the site is updated with new articles







Day of Defeat Online Gaming

 New Architect > Archives > 1999 > 10 > Script Junkie

Scripting XML with TCL

By Steve Ball

One thing I really like about Tcl is that it plays nicely with other languages. Tcl was designed from the beginning to be embedded within a program written in another language, such as C, C++, or Java. In addition, Tcl itself can be extended with components written in those lower-level system-programming languages. It's this adaptability and easy integration that has earned Tcl the nickname "the glue language of the Internet."

When it comes to storing data or shipping it around the network between applications, what's needed is a data format that is independent of any particular language or platform -- one that can be used to represent any arbitrary data structures that a program uses. XML, the eXtensible Markup Language, looks like it will fill this role quite well. If two applications need to exchange information, they can use XML as an intermediate data format. As long as the applications both have support for the XML document type being exchanged, they can communicate. Recently I wrote a couple of support modules that take advantage of this concept: a Web-based workflow system using a SAP R/3 Financial Management System installation and a Tcl interface to the XML-RPC. XML-RPC combines XML with HTTP to provide a simple protocol for performing remote procedure calls. We'll study these two examples in close detail in this article.

XML takes care of the nitty-gritty of endianess (big-endian number representation as opposed to little-endian), internationalization, and so on. Because XML is able to fill this role it has lately been referred to as "data glue," meaning that it can glue together applications.




  Day of Defeat Online Gaming

home | daily | current issue | archives | features | critical decisions | case studies | expert opinion | reviews | access | industry events | newsletter | research | careers | info centers | advertising | subscribe | subscriber service | editorial calendar | press | contacts


Copyright © 2006 CMP Media, LLC Read our privacy policy, your California privacy rights, terms of service.
SDMG Web sites: BYTE.com, C/C++ Users Journal, Developer Pipeline, Dr. Dobb's Journal, DotNetJunkies, MSDN Magazine, Sys Admin,
SD Expo, SD Magazine, SqlJunkies, The Perl Journal, Unixreview, Windows Developer Network, New Architect

web2