So I am using tinyxml with c++ and its my first time really parsing with it and xml. Is it possible to, when the text element is pressed, grab the goto attribute and set the dialog id to that attribute. Can't seem to figure out a way to grab the id when the text element is clicked.
<dialogtree>
<dialog id='0'>
<name>Boss</name>
<message name="Boss" text="Testing the dialog system!"></message>
<responses>
<response condition="True" goto='1'>
response text
</response>
<response condition="False" goto='2'>
response text
</response>
<response condition="False" goto='2'>
response text
</response>
</responses>
</dialog>
<dialog id='1'>
<name>Player</name>
<message name="Boss" text="Next message"></message>
<responses>
<response condition="True" goto='3'>
response text
</response>
<response condition="False" goto='4'>
response text
</response>
<response condition="False" goto='4'>
response text
</response>
</responses>
</dialog>
</dialogtree>