From: Steve B. <Ste...@zv...> - 2001-08-20 20:48:56
|
Sreng Truong wrote: > here is a code I tested. After removing a child from the DOM tree, I try > > to free the child from memory. > > ---------- destroy.tcl > package require dom > > set doc [dom::DOMImplementation create] > set root [dom::document createElement $doc top] > set node1 [dom::document createElement $root node] > set node2 [dom::document createElement $root node] > > puts $node1 > dom::node removeChild $root $node1 > dom::DOMImplementation destroy $node1 > puts [dom::DOMImplementation serialize $doc] > > ------- > That doesn't work at all! [...snip...] > > Do I use the destroy function correctly ? It looks OK to me. Please submit this as a bug report on SourceForge. Cheers, Steve Ball -- Steve Ball | XSLT Standard Library | Training & Seminars Zveno Pty Ltd | Web Tcl Complete | XML XSL Schemas http://www.zveno.com/ | TclXML TclDOM | Tcl, Web Development Ste...@zv... +---------------------------+--------------------- Ph. +61 2 6242 4099 | Mobile (0413) 594 462 | Fax +61 2 6242 4099 |