new method to find a "real" (ie, not comment or whitespace) xml node
authorDan Winship <danw@src.gnome.org>
Mon, 6 Nov 2006 20:35:28 +0000 (20:35 +0000)
committerDan Winship <danw@src.gnome.org>
Mon, 6 Nov 2006 20:35:28 +0000 (20:35 +0000)
commitd3691a8887976fd5a5cdbc9e08b4568020e66ad5
tree3330f94be049fe81c14601cb691fe348d4a78b91
parent34059ea3cfbdb2630a34743f811b5cd2accac7a4
new method to find a "real" (ie, not comment or whitespace) xml node

* libsoup/soup-misc.c (soup_xml_real_node): new method to find a
"real" (ie, not comment or whitespace) xml node

* libsoup/soup-soap-response.c (parse_parameters)
(soup_soap_response_from_string)
(soup_soap_parameter_get_first_child)
(soup_soap_parameter_get_next_child): Use soup_xml_real_node.
Based on a patch from Andrew W. Nosenko.

* libsoup/soup-xmlrpc-message.c (soup_xmlrpc_message_from_string):
don't call xmlKeepBlanksDefault, which changes libxml's behavior
globally! Instead, use soup_xml_real_node() when traversing the
xml tree.

* libsoup/soup-xmlrpc-response.c
(soup_xmlrpc_response_from_string): don't call
xmlKeepBlanksDefault.
(exactly_one_child): rewrite in terms of soup_xml_real_node()
(which means it handles comments now as well)
(soup_xmlrpc_value_get_struct)
(soup_xmlrpc_value_array_get_iterator)
(soup_xmlrpc_value_array_iterator_prev)
(soup_xmlrpc_value_array_iterator_next): Use soup_xml_real_node.
ChangeLog
libsoup/soup-misc.c
libsoup/soup-misc.h
libsoup/soup-soap-response.c
libsoup/soup-xmlrpc-message.c
libsoup/soup-xmlrpc-response.c