Posted to tcl by de at Wed Aug 28 10:51:03 GMT 2019view raw

  1. package require tdom 0.9.1
  2.  
  3. dom parse -ignorexmlns {
  4. <foo:bar>
  5. <baz:boo/>
  6. </foo:bar>
  7. } doc
  8.  
  9. $doc documentElement root
  10. set myElementName "baz:boo"
  11. puts [$root selectNodes %myElementName]
  12.