function call std::vector
<p>Below is how i am calling the function Xpath.evaluate. This is not working because of the wrong function call. please help    </p>

<pre><code>std::vector&lt;std::string&gt; album;

xpath.evaluate("*[local-name()=*album*]/text()",album);
</code></pre>

<p>the xpath.evaluate function is </p>

<pre><code>void XPath::evaluate(char const* xpath, vector&lt;string&gt;&amp; result) const
throw (Error) {
    result.clear();

    vector&lt;xmlNodePtr&gt; r;
    evaluate(xpath, r);

    xmlBufferPtr buff = xmlBufferCreate();
    for (size_t i = 0; i &lt; r.size(); ++i) {
        xmlSaveCtxtPtr ctxt = xmlSaveToBuffer(buff, "UTF-8",
                                              XML_SAVE_NO_DECL | XML_SAVE_NO_XHTML);
        xmlNodePtr clone = xmlCopyNode(r[i], 1);
        xmlSaveTree(ctxt, clone);

        // OMG
        if (clone-&gt;doc != NULL &amp;&amp; clone-&gt;doc != r[i]-&gt;doc) {
            xmlFreeDoc(clone-&gt;doc);
        }
        else {
            xmlFreeNode(clone);
        }

        xmlSaveFlush(ctxt);
        result.push_back(string((char const*) buff-&gt;content, buff-&gt;use));
        xmlSaveClose(ctxt);
        xmlBufferEmpty(buff);
    }
    xmlBufferFree(buff);
}
</code></pre>

<p>how do I call this function ??</p>
