received Property
Returns the received message. Read-only.
xmldom = smex.received
Remarks
The value of the received property is an Extensible Markup Language Document Object Model (XML DOM) node containing the received message. The value of the received property does not change until the next onreceive event occurs.
Example
The following code demonstrates the use of the received property.
function onSmexReceive(){
var docElem = idSmex.received;
LogMessage("onSmexReceive(): Received smex message: "+idSmex.received.xml);
if ("MonitorStartResponse" == docElem.baseName) {
LogMessage("onSmexReceive(): Received MonitorStartResponse; sending SetAgentState message...");
idSmex.sent = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><SetAgentState
xmlns=\"http://www.ecma.ch/standards/ecma-323/csta/ed2\"><device>" + deviceID + "</device>
<requestedAgentState>ready</requestedAgentState></SetAgentState>"
}
}