User Guide
XML class 177
// <rootNode>
// <oldest/>
// <middle/>
// <middle/>
// <youngest/>
// </rootNode>
// </rootNode>
XML.contentType
Availability
Flash Media Server 2.
Usage
my_xml.contentType
Description
Property; the MIME content type that is sent to the server when you call the XML.send() or
XML.sendAndLoad() method. The default is application/x-www-form-urlencoded, which is the
standard MIME content type used for most HTML forms.
Example
The following example creates a new XML document and checks its default content type:
// Create a new XML document.
var doc = new XML();
// Trace the default content type.
trace(doc.contentType);
// output: application/x-www-form-urlencoded
See also
XML.send(), XML.sendAndLoad()
NOTE
In Flash Media Server, the output of trace() statements appears in the application log
file and Application inspector.
NOTE
In Flash Media Server, the output of trace() statements appears in the application log
file and Application inspector.