CESNET / libyang

YANG data modeling language library
BSD 3-Clause "New" or "Revised" License
369 stars 292 forks source link

Dump node to a array #2325

Open CeciliaZhong-CC opened 1 week ago

CeciliaZhong-CC commented 1 week ago

Hi team,

Are there any API to dump a node to a array, this array will store all the information of this node, such as the full xpath and value.

BR, Cecilia Zhong

michalvasko commented 1 week ago

No, there are only standard XML, JSON, and LYB printers. But it should be really easy to write something like what you described.