Internet Explorer and Mozilla Firefox
The first one is used in the newer versions and the second one works with older IE browsers (5.0+). For Mozilla browsers you instantiate an XmlHttpRequest like so:
There is also another method to fetch an XML document. That is by using document.implementation in Mozilla and using XMLDOM for IE. The code for doing that is:
// Mozilla architecture
document.implementation.createDocument("", "", null)
I do not discuss this method here. It is basically for just loading an xml document without sending data in the request. But you can still easily send GET data.