io CHANGE reflect libyang api change
diff --git a/src/io.c b/src/io.c
index 40eac1c..d793d02 100644
--- a/src/io.c
+++ b/src/io.c
@@ -388,7 +388,7 @@
     DBG("Received message (session %u): %s", session->id, msg);
 
     /* build XML tree */
-    *data = lyxml_read(session->ctx, msg, 0);
+    *data = lyxml_read_data(session->ctx, msg, 0);
     if (!*data) {
         goto error;
     } else if (!(*data)->ns) {