MACROMEDIA FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT LANGUAGE Reference page 209

Server-side actionscript language reference
Table of Contents

Advertisement

Example
A directory contains a server-side script file and an XML file. The XML file, named
"SoapSample.xml" contains the following:
<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://www.w3.org/2001/12/soap-envelope">
<soap:Body xmlns:w="http://www.example.com/weather">
<w:GetTemperature>
<w:City>San Francisco</w:City>
</w:GetTemperature>
</soap:Body>
</soap:Envelope>
The source for the server-side script file contains the following code (note the comments for
the Output strings):
var xmlDoc = new XML();
xmlDoc.ignoreWhite = true;
xmlDoc.load("SoapSample.xml");
xmlDoc.onLoad = function(success)
{
var tempNode = xmlDoc.childNodes[0].childNodes[0].childNodes[0];
trace("w:GetTemperature prefix: " + tempNode.prefix); // Output: ... w
var soapEnvNode = xmlDoc.childNodes[0];
trace("soap:Envelope prefix: " + soapEnvNode.prefix); // Output: ...
soap
}
XML.previousSibling
Availability
Flash Media Server 2.
Usage
my_xml.previousSibling
Description
Property (read-only); an XMLNode value that references the previous sibling in the parent
node's child list. The property has a value of
node. This property cannot be used to manipulate child nodes; use the
XML.insertBefore()
, and
XML.removeNode()
if the node does not have a previous sibling
null
methods instead.
XML.appendChild()
XML class
209
,

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

This manual is also suitable for:

Flash media server 2

Table of Contents