I need to read text data from a XML file and display it on the screen. How do I do that ?
You should head over to the Scripting & Data section of our docs. There you can see how to work with data and exposing it to UX.
Then there are a few simple steps to achieve what you want.