Is it possible to get element text using POCO XPath
<p>Xml:</p>

<pre><code>&lt;root&gt;
  &lt;headers&gt;
          &lt;aaa&gt;111&lt;/aaa&gt;
          &lt;bbb&gt;222&lt;/bbb&gt; 
  &lt;/headers&gt;
&lt;/root&gt;
</code></pre>

<p>Some of xpaths that I tried (either not found or value is empty):</p>

<pre><code>/root/headers/bbb value[]       
/root/headers/aaa value[]       
/root/headers/bbb/text() could not be found.        
/root/headers/aaa/text() could not be found.        
//bbb value[]           
//bbb/text() could not be found.            
//bbb[1] could not be found.        
//aaa[0] value[]        
/root/headers/bbb[1] could not be found.        
/root/headers/aaa[0] value[]    
</code></pre>

<p>Code:</p>

<pre><code>Poco::XML::XMLString xmlPath(xPath);
Poco::XML::Node* node = rootNode-&gt;getNodeByPath(xmlPath);
std::string value = node-&gt;nodeValue();
</code></pre>

<p>Is it possible to get 111 or 222 values by using XPath?</p>