plugins exts UPDATE ext callback for data node validation
Fixes #1908
diff --git a/src/parser_xml.c b/src/parser_xml.c
index 4e19fd8..da43b40 100644
--- a/src/parser_xml.c
+++ b/src/parser_xml.c
@@ -841,9 +841,12 @@
}
assert(node);
- /* add/correct flags */
if (snode) {
+ /* add/correct flags */
LY_CHECK_GOTO(ret = lyd_parse_set_data_flags(node, &meta, (struct lyd_ctx *)lydctx, ext), error);
+
+ /* store for ext instance node validation, if needed */
+ LY_CHECK_GOTO(ret = lyd_validate_node_ext(node, &lydctx->ext_node), error);
}
/* parser next */