Instant Download: TclDOM v3.1 (tarball) (zip)

TclDOM
Document Object Model For Tcl
Project Home
Open this chapter TclXML
 TclDOM You are here
  Go to this section Download and Installation
  Go to this section Examples
  Go to this section Documentation
  Go to this section Contributing
  Go to this section Discussion
Open this chapter TclXSLT
Open this chapter Combo Distribution
Open this chapter tkxmllint
Open this chapter tkxsltproc
Open this chapter TclTidy
Open this chapter Xmlgen
Open this chapter Success Stories
 

TclDOM is a Tcl language binding for the W3C's DOM standard. DOM provides a tree view of an XML document. TclDOM is also a package with several implementations, including one written in pure Tcl (TclDOM/tcl), one written in C based on tcldompro (TclDOM/c) and another that wraps the Gnome libxml2 library (TclDOM/libxml2).

Download and Installation

Note

To install TclDOM you'll need to first install the TclXML package.

TclDOM v3.1 is the current release. Check the release notes for details on what's working and what's not. Download from SourceForge:

To get the latest-and-greatest code, pull the CVS tree. The module name is "tcldom". There are no guarantees that the code is in any particular state (or even working at all).

Installation

See the detailed instructions in the README file.

Examples

The TclDOM package distribution includes a number of useful example scripts. These are as follows:

  • tkxmllint.tcl

    This application provides a graphical interface for the xmllint command-line tool that is part of Gnome libxml2 library.

  • cgi2dom.tcl

    The cgi2dom package turns a HTTP query string into a DOM tree.

  • domtext.tcl

    The domtext package provides a Tk megawidget. It makes the Text widget DOM-aware. Instead of inserting characters into a Text widget, a domtext widget is associated with a DOM tree. The widget displays a text representation of the DOM document.

    A domtext widget responds to certain DOM events that occur on its associated DOM tree. The widget also posts DOM events. A domtext widget allows character data to be edited, and updates the corresponding DOM text node with the new character data.

  • domtree.tcl

    The domtree package provides a BWidget megawidget. It makes the BWidget Tree widget DOM-aware. A domtree widget may be configured to display a DOM tree, which is represented as a tree of nodes.

    A domtree widget responds to certain DOM events that occur on its associated DOM tree. The widget also posts DOM events.

Documentation

The more the merrier...

Contributing

Contributions of any kind to the project are welcome.

Reporting Bugs

An important contribution you can make is to test the package and report any bugs. Use SourceForge bug tracking to report problems or request features. Please make sure you set the category to "TclDOM".

Sponsorship

We are very grateful to Invisible Worlds, who sponsored the TclXML project for most of 2000. Their contribution resulted in the development of XPath support, the xmlswitch command and other features.

Discussion

Discussion takes place on the TclXML mailing lists and on comp.lang.tcl.