A
Ajay
hi!
is there an equivalent for the Java document.importNode in Python
what i am trying to do is to import a node from a different document into
the current document and then append it one of the nodes in the current
document
tempNode.ownerDocument = node.ownerDocument
#the above gives an error saying i am trying to modify a reda-only
attribute
#if i omit the statement, the statement below throws an error saying they
#the nodes are from different document
node.appendChild(tempNode)
thanks
cheers
is there an equivalent for the Java document.importNode in Python
what i am trying to do is to import a node from a different document into
the current document and then append it one of the nodes in the current
document
tempNode.ownerDocument = node.ownerDocument
#the above gives an error saying i am trying to modify a reda-only
attribute
#if i omit the statement, the statement below throws an error saying they
#the nodes are from different document
node.appendChild(tempNode)
thanks
cheers