Permalink
Browse files

added nodeValue to Xpath

  • Loading branch information...
1 parent 9bbeffc commit ad9c980e53ae91c06639822a5631e20518d6bec4 @drotiro committed May 25, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Xml.cpp
View
@@ -48,7 +48,7 @@ std::vector<string> Xpath::query(string expr) {
xmlNode * cn = nodeset->nodeTab[i];
nsi = xmlNodeListGetString(context->doc, cn->xmlChildrenNode, 1);
if(!nsi) res.push_back(nodeValue(cn));
- if(nsi) {
+ else {
res.push_back((char *)nsi);
xmlFree(nsi);
}

0 comments on commit ad9c980

Please sign in to comment.