summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a49486b)
raw | patch | inline | side by side (parent: a49486b)
author | Dan Fandrich <dan@coneharvesters.com> | |
Wed, 6 Feb 2013 20:44:03 +0000 (21:44 +0100) | ||
committer | Florian Forster <octo@collectd.org> | |
Sat, 16 Mar 2013 12:45:48 +0000 (13:45 +0100) |
This is a pretty basic use case, namely to select text within an XML
element, instead of just attribute values.
Signed-off-by: Florian Forster <octo@collectd.org>
element, instead of just attribute values.
Signed-off-by: Florian Forster <octo@collectd.org>
src/curl_xml.c | patch | blob | history |
diff --git a/src/curl_xml.c b/src/curl_xml.c
index fc02859e9fd5f2fadfb15042fc17aaa4d5b1b24f..eda87d09655ae92c6454899a2125ee1e174e8305 100644 (file)
--- a/src/curl_xml.c
+++ b/src/curl_xml.c
@@ -245,7 +245,8 @@ static xmlXPathObjectPtr cx_evaluate_xpath (xmlXPathContextPtr xpath_ctx, /* {{{
static int cx_if_not_text_node (xmlNodePtr node) /* {{{ */
{
- if (node->type == XML_TEXT_NODE || node->type == XML_ATTRIBUTE_NODE)
+ if (node->type == XML_TEXT_NODE || node->type == XML_ATTRIBUTE_NODE ||
+ node->type == XML_ELEMENT_NODE)
return (0);
WARNING ("curl_xml plugin: "