parser xml UPDATE accept any namespace of error-info elems
diff --git a/src/parser_xml.c b/src/parser_xml.c
index 7d812d6..049cce2 100644
--- a/src/parser_xml.c
+++ b/src/parser_xml.c
@@ -1210,7 +1210,6 @@
{
LY_ERR r;
struct lyd_node *child, *iter;
- const struct lyxml_ns *ns;
ly_bool no_dup;
/* there must be some child */
@@ -1269,19 +1268,6 @@
if (r == LY_ENOT) {
assert(xmlctx->status == LYXML_ELEMENT);
- /* learn namespace */
- ns = lyxml_ns_get(&xmlctx->ns, xmlctx->prefix, xmlctx->prefix_len);
- if (!ns) {
- LOGVAL(xmlctx->ctx, LYVE_REFERENCE, "Unknown XML prefix \"%.*s\".", (int)xmlctx->prefix_len, xmlctx->prefix);
- r = LY_EVALID;
- goto error;
- } else if (!strcmp(ns->uri, "urn:ietf:params:xml:ns:netconf:base:1.0")) {
- LOGVAL(xmlctx->ctx, LYVE_SYNTAX, "Unexpected child element \"%.*s\" of \"error-info\".",
- (int)xmlctx->name_len, xmlctx->name);
- r = LY_EVALID;
- goto error;
- }
-
/* custom elements */
r = lydxml_opaq_r(xmlctx, parent);
LY_CHECK_GOTO(r, error);