exam questions

Exam 70-480 All Questions

View all questions & answers for the 70-480 exam

Exam 70-480 topic 3 question 12 discussion

Actual exam question from Microsoft's 70-480
Question #: 12
Topic #: 3
[All 70-480 Questions]

DRAG DROP -
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:

Show Suggested Answer Hide Answer
Suggested Answer:
Note:

Parse an XML Document -
Example. The following code fragment parses an XML document into an XML DOM object: if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.open("GET","books.xml",false);
xmlhttp.send();
xmlDoc=xmlhttp.responseXML;

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
bdb1993
Highly Voted 5 years, 6 months ago
This answer won't display anything. Begin with the function block and and with the DOM manipulation.
upvoted 10 times
...
Anette
Highly Voted 4 years, 9 months ago
the order of boxes is 8, 6, 4 , 3, 2 , 5 , 9, 7, 1
upvoted 5 times
...
elevator44
Most Recent 4 years, 10 months ago
https://www.w3schools.com/js/js_ajax_http.asp To handle IE5 and IE6, check if the browser supports the XMLHttpRequest object, or else create an ActiveX object: We need to start by calling function readXMLfile() { for my eye from this on answer is right but it also need innetHTML insertion at the end. So we are using all code blocks.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...