}
switch_snprintf(id, sizeof(id), "%d", holder->rows);
-
- switch_xml_set_attr_d(holder->xml, "row_id", id);
+
+ switch_xml_set_attr(switch_xml_set_flag(row, SWITCH_XML_DUP), strdup("row_id"), strdup(id));
for (x = 0; x < argc; x++) {
char *name = columnNames[x];
char *xmlstr;
switch_snprintf(count, sizeof(count), "%d", holder.count);
- switch_xml_set_attr_d(holder.xml, "row_count", count);
+ switch_xml_set_attr(switch_xml_set_flag(holder.xml, SWITCH_XML_DUP), strdup("row_count"), strdup(count));
xmlstr = switch_xml_toxml(holder.xml, SWITCH_FALSE);
if (xmlstr) {