diff --git a/src/include/switch_xml.h b/src/include/switch_xml.h index 5ea600a550..7362a587ee 100644 --- a/src/include/switch_xml.h +++ b/src/include/switch_xml.h @@ -69,7 +69,8 @@ SWITCH_BEGIN_EXTERN_C SWITCH_XML_ROOT = (1 << 0), // root SWITCH_XML_NAMEM = (1 << 1), // name is malloced SWITCH_XML_TXTM = (1 << 2), // txt is malloced - SWITCH_XML_DUP = (1 << 3) // attribute name and value are strduped + SWITCH_XML_DUP = (1 << 3), // attribute name and value are strduped + SWITCH_XML_CDATA = (1 << 4) // body is in CDATA } switch_xml_flag_t; /*! \brief A representation of an XML tree */ diff --git a/src/switch_xml.c b/src/switch_xml.c index f2e43f6318..596fa6a6bf 100644 --- a/src/switch_xml.c +++ b/src/switch_xml.c @@ -1139,10 +1139,14 @@ SWITCH_DECLARE(switch_xml_t) switch_xml_parse_str(char *s, switch_size_t len) if (!(s = strstr(s + 3, "--")) || (*(s += 2) != '>' && *s) || (!*s && e != '>')) return switch_xml_err(root, d, "unclosed