xml parser FEATURE verb messages when skipping/creating opaque nodes
diff --git a/src/parser_xml.c b/src/parser_xml.c
index 0b90d68..a61ca39 100644
--- a/src/parser_xml.c
+++ b/src/parser_xml.c
@@ -393,6 +393,8 @@
if ((*snode)->nodetype & LYD_NODE_TERM) {
/* value may not be valid in which case we parse it as an opaque node */
if (lys_value_validate(NULL, *snode, xmlctx->value, xmlctx->value_len, LY_VALUE_XML, &xmlctx->ns)) {
+ LOGVRB("Parsing opaque term node \"%s\" with invalid value \"%.*s\".", (*snode)->name, xmlctx->value_len,
+ xmlctx->value);
*snode = NULL;
}
} else if ((*snode)->nodetype == LYS_LIST) {
@@ -401,6 +403,7 @@
if (lydxml_check_list(xmlctx, *snode)) {
/* invalid list, parse as opaque if it missing/has invalid some keys */
+ LOGVRB("Parsing opaque list node \"%s\" with missing/invalid keys.", (*snode)->name);
*snode = NULL;
}
} else {
@@ -512,6 +515,8 @@
ret = LY_EVALID;
goto error;
} else if (!(lydctx->parse_opts & LYD_PARSE_OPAQ)) {
+ LOGVRB("Skipping parsing of unkown node \"%.*s\".", name_len, name);
+
/* skip element with children */
LY_CHECK_GOTO(ret = lydxml_data_skip(xmlctx), error);
return LY_SUCCESS;