Posted to tcl by mjanssen at Thu Feb 12 18:54:48 GMT 2015view raw

  1. set doc [[dom parse {<test xmlns="http://www.google.com"/>}] documentElement]
  2. set child [[dom parse {<item/>}] documentElement]
  3. $child setAttributeNS "" xmlns "http://www,google.com"
  4. $doc appendChild $child
  5. $doc asXML
  6.