How do I iterate over configuration nodes only while using maapi_iterate()?

I am using the function maapi_iterate() to iterate over “/” . But this is iterating over operational nodes also. I need to iterate configuration nodes only. Any idea on how to do this?

Try using the flag MAAPI_FLAG_CONFIG_ONLY with maapi_start_trans_flags() or maapi_set_flags().