diff options
author | Richard Schwarting <aquarichy@gmail.com> | 2011-09-26 21:45:11 -0400 |
---|---|---|
committer | Richard Schwarting <aquarichy@gmail.com> | 2011-09-26 21:45:11 -0400 |
commit | 0ad80611a54e96d3d47b7f207a8cbad63fa842d0 (patch) | |
tree | fa6e9c9f051826898177f3d1e9c1c8022326e338 | |
parent | 70c799f4c26d9b1c6e2fec180b9f18d5457f2809 (diff) | |
download | libgdata-0ad80611a54e96d3d47b7f207a8cbad63fa842d0.tar.gz |
* 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.
-rw-r--r-- | gdata/gdata-parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |