Posted to tcl by mjanssen at Thu Feb 12 14:14:22 GMT 2015view pretty

dom parse {<test xmlns="http://www.google.com"/>} doc
[$doc documentElement] appendXML "<item/>"
$doc  asXML

<test xmlns="http://www.google.com">
    <item xmlns=""/>
</test>