This may be a basic question but it has me stuck. I would like to use the send and load function with an asp script but I don't know how to code the asp to unravel the incoming XML. I'm OK with sending the XML back out again. But what is the equivalent of Request.Form etc when the incoming data is XML??
Any code snippets or links to tutorials much appreciated.
Flash sends the entire XML object as a string via POST.
So setting a variable to equal that should get the whole XML string.
strXML = Request.Form
The XML Loading method is different depending on where the XML is coming from.
If the XML is to be loaded form a URL use the .load function.
objXML.load("http://www.site.com")
If you have a string or variable, use the loadXML function:
objXML.loadXML(strXML)
To Check that you have the XML in that variable from the post do
Response.Write strXML
REMEMBER that IE will try and render that XML, so you may get a blank page or the XML tree, in either case a VIEW SOURCE will show you the correct stuff