Version 11 of TclDOM

Updated 2003-02-05 12:32:21

TclDOM, maintained at http://sourceforge.net/projects/tclxml , is the DOM part of Zveno's TclXML project.

TclDOM has partial pure-Tcl-coded XPath support, as of September 2001.

Version 2.5 of TclDOM adds a couple of new example scripts that may be useful:

    domtext: displays a DOM document in a Tk Text widget
    domtree: displays a DOM document's tree structure in a
        BWidget Tree widget.

Andreas Kupries provides a daily snapshot of the SourceForge CVS depot at http://www.purl.org/net/akupries/soft/cvs-snapshots/ .

AK: Note: There are more places to find Tcl binaries and sources than my site.

ActiveState Corporation's ActiveTcl also includes a TclDOM version.


Documentation appears (also?) at http://aspn.activestate.com/ASPN/Products/ActiveTcl/tcldom/index.html .


If you are trying to load TclDOM into a safe slave interpreter see the notes under TclXML. - PT


Steve Ball: "The only software in the TclXML stable that will validate a document is TclDOM+libxml2.". This package is also known as Tcldomxml. It wraps a TclDOM-API around GNOME's libxml [L1 ] and provides the basis for TclXSLT.


CThatcher: TclDOM seems to be missing a few important features - like the ability to parse new data into an arbitrary place in a DOM document. The only parse feature creates a new document each time and most of the ::node:: operations (like appendChild) simply complain that the node needs to be in the same document. If anyone knows a quick and easy way to do the above with TclDOM please let me know.

Additionally, there should at least be an option for parsing which allows us to control the underlying parser before parsing actually takes place. Like the handling of whitespace. In *theory* we should be treating all whitespace as is, but in practice we need to be a little more brutal than that sometimes - and lets face it the trim function is diabolically slow.