title: Recursive pugixml, can't get values
body: <p>Well, I got code</p>
  
  <pre><code>pugi::xml_node text = doc.child("text").child("girl");
  
  for (int i = 0; i &lt; situations.size(); i++)
  {
      std::cout &lt;&lt; situations[i] &lt;&lt; std::endl;
      text = text.child(situations[i].c_str()); // problem
  }
  </code></pre>
  
  <p>After that code, I can't get any values from text, but straight using like</p>
  
  <pre><code>doc.child("text").child("girl").child_value("day1")
  </code></pre>
  
  <p>Is working.
  Need help.
  Thanks.</p>