Fixed [xml bind yang error in xml_bind_yang_rpc_reply #175](https://github.com/clicon/clixon/issues/175)

This commit is contained in:
Olof hagsand 2021-02-16 17:21:33 +01:00
parent a129756c6c
commit dee4e87edf
5 changed files with 56 additions and 12 deletions

View file

@ -309,7 +309,7 @@ example_rpc(clicon_handle h, /* Clicon handle */
cprintf(cbret, "<rpc-reply xmlns=\"%s\"", NETCONF_BASE_NAMESPACE);
if ((xp = xml_parent(xe)) != NULL &&
(msgid = xml_find_value(xp, "message-id"))){
cprintf(cbret, " message-id=\"%s\">", msgid);
cprintf(cbret, " message-id=\"%s\"", msgid);
}
cprintf(cbret, ">");
if (!xml_child_nr_type(xe, CX_ELMNT))