XMLHttpRequest Demo: Making a basic request

In this example, we are requesting an XML file from the server. The response returned is an XMLDocument object that we will parse into something readable. Its status / statusText values will be 200 / OK.

Click the button to trigger the request.