Can maapi_save_config support "keypath"?

from the user guide, i can only see it support “XPATH filter” instead of "keypath” via MAAPI_CONFIG_XPATH flag

but how can i dump a keypath into xml format?

Hello,

not sure if this fits your need, but you can “print” confd_hkeypath_t into string using
confd_pp_kpath() or confd_pp_kpath_len() functions, or confd_xpath_pp_kpath() if you need XPATH format…

Hi, josephm
thanks, but what i mean is to dump the cdb data which presented by this keypath into xml format, not keypath itself.

sorry, ignore this question, i know how to do it now

1 Like