diff options
author | Dan Winship <danw@src.gnome.org> | 2006-11-06 20:35:28 +0000 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2006-11-06 20:35:28 +0000 |
commit | d3691a8887976fd5a5cdbc9e08b4568020e66ad5 (patch) | |
tree | 3330f94be049fe81c14601cb691fe348d4a78b91 /libsoup/soup-misc.h | |
parent | 34059ea3cfbdb2630a34743f811b5cd2accac7a4 (diff) | |
download | libsoup-d3691a8887976fd5a5cdbc9e08b4568020e66ad5.tar.gz |
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.
Diffstat (limited to 'libsoup/soup-misc.h')
-rw-r--r-- | libsoup/soup-misc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libsoup/soup-misc.h b/libsoup/soup-misc.h index 0398abe7..2d739e35 100644 --- a/libsoup/soup-misc.h +++ b/libsoup/soup-misc.h @@ -7,6 +7,7 @@ #define SOUP_MISC_H 1 #include <glib-object.h> +#include <libxml/tree.h> /* Base64 encoding/decoding */ @@ -61,6 +62,8 @@ guint soup_str_case_hash (gconstpointer key); gboolean soup_str_case_equal (gconstpointer v1, gconstpointer v2); +xmlNode *soup_xml_real_node (xmlNode *node); + /** * soup_ssl_supported: * |