Parsing segments (nodes) from xpath in libyang #2312
Unanswered
nbiskup-eridan
asked this question in
Q&A
Replies: 1 comment 2 replies
-
No, libyang does not expose API for XPath parsing. But there are some functions in sysrepo, header |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I would like to know if there is an existing function in libyang that can parse segments (nodes) from an xpath expression.
For example, given an xpath like:
Is there a function that would allow me to extract the individual nodes (rx-array-carriers, active) and attributes (name='carrier1')?
I appreciate any guidance or suggestions on how to achieve this using libyang, or if there's a recommended approach.
Thank you for your help!
Beta Was this translation helpful? Give feedback.
All reactions