mixing xml, dom and tdom



Hello,

An "old dog" learning "new tricks" - like Tcl/Tk. I have inherited
some code which relies on tDOM but wish - no pun intended - to use SOAP
in the final S/W product. I am working primarily on [Fedora] Linux
systems.

First, when I download SOAP the documentation file
"tclsoap1.6.7/DESCRIPTION.txt" says:

Require: xml
Require: dom
Suggest: tdom

Second, in a modified version of the inherited code, the order of these
three "package require" statements
determines whether a segfault occurs or not (the XML package is not
used in the inherited code but would be required by the SOAP package):

package require tdom 0.8
package require tile
package require xml

....so that if "require xml" comes before "require tdom" a segfault
occurs [...how to trace segfaults in Tcl is another ??]. This seems to
tell me that including both of those packages is probably not a good
idea.

....should the inherited code not rely on tDOM since the inclusion of
package XML can lead to segfaults? but why is tDOM suggested for SOAP
if XML and DOM are required? From what I gather, tDOM is composed of
C-binaries for optimized performance, but it must leave out some
XML/DOM functionality? if so, how to avoid conflicts [segfaults,
apparently] where functionality has been duplicated?

What is the best approach to this brave new world: ditch tDOM or use
the entire stew? How do I best avoid hair pulling down the road? My
initial hunch is to develop without using tDOM and then include it in
stable products as a means of enhancing overall performance... but
maybe I am "missing the boat" on something...

Thanks,
-Kevin

.



Relevant Pages

  • Re: Is tclxml maintained anymore?
    ... Regarding tDOM: I haven't switched to it, ... although libxml2/libxslt does not currently support XPath/XSLT ... XSLT to manipulate XML documents, and use Tcl to orchestrate the XSLT ... The most recent release of the tclxml package is from 2005. ...
    (comp.lang.tcl)
  • Re: SOAP request with repeated "sub record"
    ... I have (broke it w/invalid include to see package). ... I also had problems with the tdom requirement. ... we needed to compile tdom from an anonymous CVS pull. ... Have however come accross another issue related to the server ...
    (comp.lang.tcl)
  • Re: SOAP request with repeated "sub record"
    ... I have (broke it w/invalid include to see package). ... I also had problems with the tdom requirement. ... we needed to compile tdom from an anonymous CVS pull. ... checks in the source files for a microsoft compiler in ...
    (comp.lang.tcl)
  • Re: TclDOM, tDOM, parsing, Attribute name case sensitivity
    ... In a private email Marian sent me an example script that attempted to ... use tDOM to parse the XML and extract the attribute names. ... did not verify the result for tDOM since I do not use that package). ... I have to say that I'm currently entangled into XML, ...
    (comp.lang.tcl)
  • Re: TCL/PHP/XML problem: I need to convert an XML file into a TCL list
    ... package require tdomSorry I am unable to figure out how to install and use tdom. ... contains a binary for tdom for linuxHe is on FreeBSD, he needs a build for that OS not linux. ... So it seems your website is hosted on a HP-UX platform, ...
    (comp.lang.tcl)