* C-API: Added xpath_first_localonly() as an xpath function that skips prefix and namespace checks.
* Added experimental code for optizing XPath search using binary search. * Enable with XPATH_LIST_OPTIMIZE * Changed `clicon_rpc_generate_error(msg, xerr)` to `clicon_rpc_generate_error(xerr, msg, arg)`
This commit is contained in:
parent
ab46ce9820
commit
7ad16bd84b
56 changed files with 602 additions and 227 deletions
|
|
@ -1059,8 +1059,8 @@ xml_find(cxobj *x_up,
|
|||
|
||||
while ((x = xml_child_each(x_up, x, -1)) != NULL)
|
||||
if (strcmp(name, xml_name(x)) == 0)
|
||||
return x;
|
||||
return NULL;
|
||||
break; /* x is set */
|
||||
return x;
|
||||
}
|
||||
|
||||
/*! Append xc as child to xp. Remove xc from previous parent.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue