dimanche 31 juillet 2016

Recursive pugixml, can't get values

Well, I got code

pugi::xml_node text = doc.child("text").child("girl");

for (int i = 0; i < situations.size(); i++)
{
    std::cout << situations[i] << std::endl;
    text = text.child(situations[i].c_str()); // problem
}

After that code, I can't get any values from text, but straight using like

doc.child("text").child("girl").child_value("day1")

Is working. Need help. Thanks.

Aucun commentaire:

Enregistrer un commentaire