From: Lars H. <Lar...@re...> - 2010-06-21 15:06:06
|
Andreas Kupries skrev: > Having read this I now also see that the _xml.tcl I mentioned in my > first mail is more of a low level generator which would be driven by > such data structures. Assembler in essence, versus your HLL. > > The xmlgen/htmlgen refeenced on your pages are much more comparable to > the _xml.tcl Having looked at _xml.tcl myself, I'd summarise the differences roughly as follows: _xml.tcl is indeed "assembler", in that it generates start- and end-tags separately (though with some facilities for automating closing of elements). xmlgen and my procedures are higher level, which make it more difficult to mess things up, but probably also increases memory requirements. A difference between my approach on one hand and that of _xml.tcl and xmlgen on the other is however that the former (re)encodes an existing data structure as XML, whereas the latter generate it on the fly; a [trace] of one's program when using these two will correspond fairly directly to the structure of the XML being generated. Lars Hellström |