Skip to content

Question about SchemaNode::path() #28

Description

@awesomenode

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions