parser xml BUGFIX skip unknown elements only if not opaq
@@ -494,11 +494,12 @@ lydxml_data_r(struct lyd_xml_ctx *lydctx, struct lyd_node_inner *parent, struct
ret = LY_EVALID;
goto cleanup;
}
-
+ if (!(lydctx->options & LYD_OPT_OPAQ)) {
/* skip element with children */
LY_CHECK_GOTO(ret = lydxml_data_skip(xmlctx), cleanup);
continue;
}
+ }
/* parser next */
LY_CHECK_GOTO(ret = lyxml_ctx_next(xmlctx), cleanup);
