I am not 100% sure what the semantics of the
dom::document createElement is supposed to be for a doc
versus node
and it seems difficult in tdom to tell which is which
(other than
to do the catch which is what I did here).
not included in the patch was the change to pkgIndex.tcl
(add
package ifneeded SOAP::dom 1.0 [list source [file join
$dir dom.tcl]]
)