We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3f76df commit 3cdd934Copy full SHA for 3cdd934
1 file changed
src/org/nexml/model/impl/AnnotationImpl.java
@@ -221,7 +221,8 @@ public void setValue(Set<Annotation> value) {
221
mValue = value;
222
getElement().setAttribute(XSI_TYPE,ResourceMeta);
223
for ( Annotation annotation : value ) {
224
- getElement().appendChild(((AnnotationImpl)annotation).getElement());
+ Node node = getElement().getOwnerDocument().adoptNode(((AnnotationImpl)annotation).getElement());
225
+ getElement().appendChild(node);
226
}
227
228
0 commit comments