How should you create the JavaScript code?

You have a webpage that includes the following markup:

An XML file named message.xml resides on a web server. The structure of the file is as follows:

You are developing a code-based solution to parse the contents of the XML file and display the information on the page.
The solution must work on both modern and older browsers.
You need to display the information from the XML file onto the page.
How should you create the JavaScript code? (Develop the solution by selecting the required code segments and arranging them in the correct order.
You may not need all of the code segments.)
Select and Place:

microsoft-exams

One thought on “How should you create the JavaScript code?

  1. The function declaration has to belong to the answer too, because the body-onload event is calling that function.

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.