Skip to content

Commit 3cdd934

Browse files
committed
Fixed exception due to improper use of DOM node in two documents.
1 parent d3f76df commit 3cdd934

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/org/nexml/model/impl/AnnotationImpl.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,8 @@ public void setValue(Set<Annotation> value) {
221221
mValue = value;
222222
getElement().setAttribute(XSI_TYPE,ResourceMeta);
223223
for ( Annotation annotation : value ) {
224-
getElement().appendChild(((AnnotationImpl)annotation).getElement());
224+
Node node = getElement().getOwnerDocument().adoptNode(((AnnotationImpl)annotation).getElement());
225+
getElement().appendChild(node);
225226
}
226227
}
227228

0 commit comments

Comments
 (0)