Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about SchemaNode::path() #28

Open
awesomenode opened this issue Jan 23, 2025 · 0 comments
Open

Question about SchemaNode::path() #28

awesomenode opened this issue Jan 23, 2025 · 0 comments

Comments

@awesomenode
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant