Skip to content

Commit

Permalink
Fixed exception due to improper use of DOM node in two documents.
Browse files Browse the repository at this point in the history
  • Loading branch information
balhoff committed Aug 31, 2012
1 parent d3f76df commit 3cdd934
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/org/nexml/model/impl/AnnotationImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,8 @@ public void setValue(Set<Annotation> value) {
mValue = value;
getElement().setAttribute(XSI_TYPE,ResourceMeta);
for ( Annotation annotation : value ) {
getElement().appendChild(((AnnotationImpl)annotation).getElement());
Node node = getElement().getOwnerDocument().adoptNode(((AnnotationImpl)annotation).getElement());
getElement().appendChild(node);
}
}

Expand Down

0 comments on commit 3cdd934

Please sign in to comment.