JYA <[EMAIL PROTECTED]> wrote:
>                for y in x.getElementsByTagName('display-name'):
>                        elem.appendChild(y)

Like Gabriel wrote, nodes can only have one parent. Use 
  elem.appendChild(y.cloneNode(True))
instead. Or y.cloneNode(False), if you want a shallow copy (i.e. without
any of the children, e.g. text content).

Marc
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to