When sending XML to the client, you first need to create a textual version of the XML.
To create the textual version, you can use the xml property of the root node of the XML document, as shown in the following fragment:
Response.Write(xObj.xml);
You can also use the technique described in Getting the XML Data.
Once you have the XML text string, there are several approaches for sending it to the client in response to a client request:
xObj.load("http://www.microsoft.com/sample.xml");
xObj.load("http://www.microsoft.com/sample.asp");
You can send XML to the server using any normal technique for sending information to the server, including:
See the DHTML documentation for details on posting data.