dom4j的org.dom4j.IllegalAddException处理
关键字: dom4j
如果你在使用dom4j时候出现了:
org.dom4j.IllegalAddException: The node "your node description..." could not be added to the element "yourNode" because: The Node already has an existing parent of "yourNode"
好了。那么你肯定是用的myelement.add(needAddElement);
那么稍微改一改myelement.add((Element)needAddElement.clone());
这样。就不会有问题了