io BUGFIX print all data (siblings) from reply structure
diff --git a/src/io.c b/src/io.c
index 7cac566..45eb3f0 100644
--- a/src/io.c
+++ b/src/io.c
@@ -895,7 +895,7 @@
NC_NS_BASE, session->msgid + 1, attrs ? attrs : "");
nc_write_clb((void *)&arg, buf, count);
free(buf);
- lyd_print_clb(nc_write_clb, (void *)&arg, content, LYD_XML, 0);
+ lyd_print_clb(nc_write_clb, (void *)&arg, content, LYD_XML, LYP_WITHSIBLINGS);
nc_write_clb((void *)&arg, "</rpc>", 6);
session->msgid++;
@@ -917,7 +917,7 @@
break;
case NC_RPL_DATA:
nc_write_clb((void *)&arg, "<data>", 6);
- lyd_print_clb(nc_write_clb, (void *)&arg, ((struct nc_reply_data *)reply)->data, LYD_XML, 0);
+ lyd_print_clb(nc_write_clb, (void *)&arg, ((struct nc_reply_data *)reply)->data, LYD_XML, LYP_WITHSIBLINGS);
nc_write_clb((void *)&arg, "</data>", 7);
break;
case NC_RPL_ERROR: