var3=TAG[''](var1,var2) TAG[''] makes a nameless tag and therefore does what you ask.
var3 = var1 + var2 has the same effect bur forces the conversion to strings before concatenating before you have not specified a tag for the top level. On Jun 28, 8:17 am, apple <[email protected]> wrote: > If I try to concatenate a TD and an XML using += then I end up with a > string. Why is that? > > e.g. > > var1=TD("aaaa") > var2=XML("bbbb") > print(type(var1)) > print(type(var2)) > var1+=var1 > print(type(var1)) > > ===> TD, XML, string

