libyang icon indicating copy to clipboard operation
libyang copied to clipboard

How to find xpath is Leaf or container

Open palaniace opened this issue 7 months ago • 1 comments

Hi ,

Is there any way i can findout xpath pointing to leaf node or container in libyang before applying data ?

Regard palani

palaniace avatar May 29 '25 09:05 palaniace

If you have the data node, you can just call lyd_path() on it.

michalvasko avatar May 29 '25 10:05 michalvasko