plugins exts CHANGE ext parsing isolated into a callback
Lots of refactoring and finishing up included.
diff --git a/src/parser_xml.c b/src/parser_xml.c
index a1fd82c..ff91715 100644
--- a/src/parser_xml.c
+++ b/src/parser_xml.c
@@ -868,7 +868,7 @@
if (insert_anchor) {
lyd_insert_after(insert_anchor, node);
} else if (ext) {
- LY_CHECK_GOTO(ret = lyd_insert_ext(parent, node), error);
+ LY_CHECK_GOTO(ret = lyplg_ext_insert(parent, node), error);
} else {
lyd_insert_node(parent, first_p, node, lydctx->parse_opts & LYD_PARSE_ORDERED ? 1 : 0);
}