Get Data from XML file?

Hello, I am trying to fill variables in a script by simple XML file. How can this be done in Javascript?

By parsing the XML file into memory. If you have the XML set up exactly as your classes are set up, there are some third party auto-serializers. If you don’t, then you’ll need to parse the file manually and apply the data to your internal structures. There are hundreds of guides and examples online for writing an XML parser.