xml BUGFIX always set correct EOF status

Fixes #1131
diff --git a/src/xml.c b/src/xml.c
index d6f6cd7..c188384 100644
--- a/src/xml.c
+++ b/src/xml.c
@@ -954,7 +954,12 @@
 
         if (xmlctx->input[0] == '>') {
             /* no attributes but a closing tag */
-            move_input(xmlctx, 1);
+            ++xmlctx->input;
+            if (!xmlctx->input[0]) {
+                LOGVAL(xmlctx->ctx, LY_VLOG_LINE, &xmlctx->line, LY_VCODE_EOF);
+                ret = LY_EVALID;
+                goto cleanup;
+            }
 
             /* parse element content */
             LY_CHECK_GOTO(ret = lyxml_parse_value(xmlctx, '<', (char **)&xmlctx->value, &xmlctx->value_len, &xmlctx->ws_only,