Fix for multiple anyxml siblings not duplicated
diff --git a/src/xml.c b/src/xml.c
index c5f601f..72ea976 100644
--- a/src/xml.c
+++ b/src/xml.c
@@ -214,6 +214,10 @@
 
         if (parent) {
             lyxml_add_child(ctx, parent, dup);
+        } else if (result) {
+            dup->prev = result->prev;
+            dup->prev->next = dup;
+            result->prev = dup;
         }
 
         /* keep old namespace for now */