Text and CDATA elements are created in different ways. Here a text object is created for subelements. and then inserted into the generated text node.
addTextElement is being used by ::svgdom::make.
Total client addTextElement usage is: 4.
Example 8.1. ::dumper::tabs2tspan using addTextElement
...
# Guard against lines without tabs.
if { -1 == \
[string first \t $line] } {
svgdom::addTextElement tspan \
[concat \
[list x $x dy $dy] $properties] $line $tnode $_doc