importing node into document
Ajay
abra9823 at mail.usyd.edu.au
Sat Aug 14 11:09:36 EDT 2004
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
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
More information about the Python-list
mailing list