Hi,
Check this
thread, this is exactly what you need.
Typicall, you'll need to refactor your xml. It's a valid xml, but not a suitable way to describe your data:
- the dialog node hosting all the dialogxx nodes, should be <dialogs> plurial, just because it's semantically correct, it's a node that will host a number or dialog node.
-- don't put string value in quote, in xml everything is a string.
- each dialog node, SHOULD NOT have their id hardcoded in the node name, but as an attribute of child node like so:
<dialog id="01">What is this place?</dialog>
Once you have refactored the points above, you'll have the best approach for a powerful and useful xml description of your data.
now go an check the thread I mentionned above, and it will show you how to query your xml to find a node with a given attribute value and store the content into a fsmString that you can then do whatever you like with.
Come back to me if you have trouble understanding and implemented the example in your own case.
Bye,
Jean