You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am porting a program from C to C++ and ran into an issue while trying to access the xpath of a SchemaNode.
Using libyang/C I could use the lysc_path() function with LYSC_PATH_DATA_PATTERN as the pathtype to get the full xpath of the node, including predicates for all list keys.
I would like to achieve the same behavior in C++, however the SchemaNode::path() method is hard-coded to use the LYSC_PATH_DATA pathtype, which doesn't include keys.
I would like to ask if there is any way in to circumvent this limitation and easily access the aforementioned full xpath with keys?
The text was updated successfully, but these errors were encountered:
Hello!
I am porting a program from C to C++ and ran into an issue while trying to access the xpath of a SchemaNode.
Using libyang/C I could use the lysc_path() function with LYSC_PATH_DATA_PATTERN as the pathtype to get the full xpath of the node, including predicates for all list keys.
I would like to achieve the same behavior in C++, however the SchemaNode::path() method is hard-coded to use the LYSC_PATH_DATA pathtype, which doesn't include keys.
I would like to ask if there is any way in to circumvent this limitation and easily access the aforementioned full xpath with keys?
The text was updated successfully, but these errors were encountered: