Copier un Node dans un autre Document
Bonjour,
J'utilise l'api DOM pour faire quelques manipulations sur un objet Document.
Ce document contient des Nodes que je dois copier ou déplacer dans un autre Document.
La javaDoc de appendChild est très explicite sur ce sujet :
Citation:
Throws:
DOMException - HIERARCHY_REQUEST_ERR: Raised if this node is of a type that does not allow children of the type of the newChild node, or if the node to append is one of this node's ancestors or this node itself.
WRONG_DOCUMENT_ERR: Raised if newChild was created from a different document than the one that created this node.
NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly or if the previous parent of the node being inserted is readonly.
Ma question est la suivante est il possible de copier un Node dans un autre document ?
merci d'avance