How to display XML?

Hello. I’m a beginner in XML. And I need help with this.

What I want to achieve is to display the XML data once I click the button. But I kept getting undefined error.

Here’s what I have:

t1.onRelease = function (){
xmlDoc = loadXMLDoc(“bestofposts.xml”);
subtopic = x.nodeValue;
results_txt.text = subtopic;

Someone please help? :frowning: I can’t seem to solve it.