InterviewSolution
| 1. |
Why Doesn't Domnode::clonenode() Clone The Pointer Assigned To A Domnode Via Domnode::setuserdata()? |
|
Answer» Xerces-C++ SUPPORTS the DOMNode::userData specified in the DOM LEVEL 3 Node interface. As is made CLEAR in the description of the behavior of cloneNode(), userData that has been SET on the Node is not cloned. Thus, if the userData is to be copied to the new Node, this copy must be effected manually. Note further that the operation of importNode() is specified similarly. Xerces-C++ supports the DOMNode::userData specified in the DOM level 3 Node interface. As is made clear in the description of the behavior of cloneNode(), userData that has been set on the Node is not cloned. Thus, if the userData is to be copied to the new Node, this copy must be effected manually. Note further that the operation of importNode() is specified similarly. |
|