hello, is there is any way to get the value of tag by its tagname in rapidxml using c++
<?xml version=\1.0\ encoding=\latin-1\?>
<book>example</book>
<book1>example1</book1>
i need to get the book value ie example and book1 value ....we can use this doc.first_node()->value()
get first node and next node but i need to is there is any way to get the value like get by name
Answer
xml_node<> *node = doc.first_node("book");
cout <<< node->value() << "\n";