* Added nsc parameter to xml2xpath() and ensured the xpath uses prefixes.

* Old code: add `NULL` as second parameter
This commit is contained in:
Olof hagsand 2022-05-09 13:26:42 +02:00
parent 82a0670031
commit 614c927343
6 changed files with 157 additions and 13 deletions

View file

@ -1375,7 +1375,7 @@ netconf_minmax_elements_xml(cxobj **xret,
goto done;
}
if (xml_parent(xp)){ /* Dont include root, eg <config> */
if (xml2xpath(xp, &path) < 0)
if (xml2xpath(xp, NULL, &path) < 0)
goto done;
if (path)
cprintf(cb, "%s", path);