Skip to content

Commit

Permalink
xpath CHANGE forbid non-prefix node names in XML
Browse files Browse the repository at this point in the history
It is not specified generally but works this way
for instance-identifiers so use the same rules.
  • Loading branch information
michalvasko authored and rkrejci committed Apr 15, 2021
1 parent 213147c commit 52143d1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/xpath.c
Expand Up @@ -5328,8 +5328,9 @@ moveto_resolve_model(const char **qname, uint16_t *qname_len, const struct lyxp_
}
break;
case LY_PREF_XML:
/* not defined */
LOGINT_RET(set->ctx);
/* all nodes need to be prefixed */
LOGVAL(set->ctx, LYVE_DATA, "Non-prefixed node \"%.*s\" in XML xpath found.", *qname_len, *qname);
return LY_EVALID;
}
}

Expand Down

0 comments on commit 52143d1

Please sign in to comment.