parser xml BUGFIX in function lydxml_data_skip

The xml children's elements are skipped to the parent's closing tag.
diff --git a/src/parser_xml.c b/src/parser_xml.c
index f237cdf..40193e8 100644
--- a/src/parser_xml.c
+++ b/src/parser_xml.c
@@ -293,6 +293,7 @@
 
     /* remember current number of parents */
     parents_count = xmlctx->elements.count;
+    assert(parents_count);
 
     /* skip after the content */
     while (xmlctx->status != LYXML_ELEM_CONTENT) {
@@ -301,7 +302,7 @@
     LY_CHECK_RET(lyxml_ctx_next(xmlctx));
 
     /* skip all children elements, recursively, if any */
-    while (parents_count < xmlctx->elements.count) {
+    while (parents_count <= xmlctx->elements.count) {
         LY_CHECK_RET(lyxml_ctx_next(xmlctx));
     }