Properly use switch_xml_parse_str_dynamic
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13259 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
adf6244240
commit
06babac1e4
|
@ -434,7 +434,7 @@ static switch_xml_t erlang_fetch(const char *sectionstr, const char *tag_name, c
|
||||||
|
|
||||||
if (switch_strlen_zero(xmlstr)) {
|
if (switch_strlen_zero(xmlstr)) {
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "No Result\n");
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "No Result\n");
|
||||||
} else if (!(xml = switch_xml_parse_str_dynamic(xmlstr, strlen(xmlstr)))) {
|
} else if (!(xml = switch_xml_parse_str_dynamic(xmlstr, SWITCH_FALSE))) {
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error Parsing XML Result!\n");
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error Parsing XML Result!\n");
|
||||||
} else {
|
} else {
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "XML parsed OK!\n");
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "XML parsed OK!\n");
|
||||||
|
|
Loading…
Reference in New Issue