From 0ad80611a54e96d3d47b7f207a8cbad63fa842d0 Mon Sep 17 00:00:00 2001 From: Richard Schwarting Date: Mon, 26 Sep 2011 21:45:11 -0400 Subject: * use get_content instead of node_list_to_string, because get content will treat special characters like <> as internal text and return them as <> without escaping them, while stringifying nodes will escape text content like <> into <, etc, to distinguish it from XML. --- gdata/gdata-parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdata/gdata-parser.c b/gdata/gdata-parser.c index 7bdab8e5..2142abb6 100644 --- a/gdata/gdata-parser.c +++ b/gdata/gdata-parser.c @@ -378,7 +378,7 @@ gdata_parser_string_from_element (GXmlDomXNode *element, const gchar *element_na } /* Get the string and check it for NULLness or emptiness */ - text = gxml_dom_node_list_to_string (gxml_dom_xnode_get_child_nodes (element), TRUE); + text = gxml_dom_element_get_content (GXML_DOM_ELEMENT (element)); if ((options & P_REQUIRED && text == NULL) || (options & P_NON_EMPTY && text != NULL && *text == '\0')) { g_free (text); // TODO:GXML: make sure return value of node_list_to_string (and other to_strings) is alloc'd *success = gdata_parser_error_required_content_missing (element, error); -- cgit v1.2.1