summaryrefslogtreecommitdiff
path: root/xml-parser.h
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@tbzatek.englab.brq.redhat.com>2008-07-30 11:35:37 +0200
committerTomas Bzatek <tbzatek@tbzatek.englab.brq.redhat.com>2008-07-30 11:35:37 +0200
commit85cdaaaeafd9eb4ff5e6f6db87e1df5e2e41b431 (patch)
treea3ee1caa36d48c87040784d5513515b767dab0f4 /xml-parser.h
parentf24a0273cfc6dbf5a74fe11abedba5b172be02a9 (diff)
downloadcataract-85cdaaaeafd9eb4ff5e6f6db87e1df5e2e41b431.tar.xz
Parse multi-element string values properly (e.g. text[0], CDATA[1], text[2])
Concatenate all matched XPATH elements into one string
Diffstat (limited to 'xml-parser.h')
-rw-r--r--xml-parser.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/xml-parser.h b/xml-parser.h
index 53d7b5a..e130e5b 100644
--- a/xml-parser.h
+++ b/xml-parser.h
@@ -39,7 +39,9 @@ TXMLFile * xml_parser_load (const char *filename);
void xml_parser_close (TXMLFile *file);
/*
- * xml_file_get_node_value: retrieve value from XPath node
+ * xml_file_get_node_value: retrieve string value from XPath node
+ * - multiple matched nodes will be concatenated into one string
+ * - otherwise please use [0], [1] etc. quantificators
*/
char * xml_file_get_node_value (TXMLFile *file, const char *x_path);