How can I get content between tags
<name> </name> and <mode> </mode>
<news>
<name>Enter</name>
<actions>
<mode>me</mode>
</actions>
</news>
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You should really have a look at the excellent documentation of TinyXML as well as the tutorial. However, what you are looking for is the
GetText()method of TiXmlElement.Once you’ve arrived at your “name” or “mode” elements, you can get the string between these tags with
GetText().