<div dir="ltr">Hi<br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 18, 2014 at 9:50 PM, Germán Carrillo <span dir="ltr"><<a href="mailto:carrillo.german@gmail.com" target="_blank">carrillo.german@gmail.com</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thank you Luigi. <div><br></div><div>So, I guess the following code would be enough to make the example given in [1] much more generic:</div><div><br></div><div>#######</div><div>cloned_group1 = node_group1.clone()<br></div><div><div>root.insertChildNode(0, cloned_group1)</div><div><br></div><div>parent = node_group1.parent()                   # new code</div><div><br></div><div>parent.removeChildNode(node_group1)     # replace root by parent</div></div><div>#######<br></div></div></blockquote><div><br></div><div> Luigi is right - you need to call removeChildNode() on the parent node. When I will find some time I will add a note to the example.</div><div><br></div><div>Cheers</div><div>Martin</div><div><br></div></div></div></div>