When sending XML to the client, you must first 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.
After you have the XML text string, you can use one of the following approaches to send it to the client in response to a client request.
load
method, as shown in the following.
xObj.load("http://www.microsoft.com/sample.xml");
load
method, as shown in the following.
xObj.load("http://www.microsoft.com/sample.asp");
You can send XML to the server using any standard technique for sending information to the server.
For more information about posting data, see the DHTML documentation.