I have an XML file that looks like this.
<?xml version="1.0" encoding="UTF-8"?>
<npc name="rose">
<stage id="1">
<part id="1">
<texttoread>Hey there!</texttoread>
<type>Normal</type>
<setstage>1</setstage>
</part>
<part id="2">
<texttoread>Have a good day!</texttoread>
<type>End</type>
<setstage>1</setstage>
</part>
</stage>
</npc>
Now if I added more things to that, how would I get the information in the <texttoread>, <type>, and <setstage> tags if I have the npc name, the stage id, and the part id?