User Guide

564 CFML Language Reference
object
Instance name of the WddxSerializer object.
obj
Instance name of the WddxRecordset object to be serialized.
Return
value
Boolean. Returns True if obj was serialized successfully and False if an error occurs.
Usage Internal. You do not typically call this function.
Example This example is from the WddxSerializer serialize function:
...
this.wddxPacket = "";
this.write("<wddxPacket version=’1.0’><header/><data>");
bSuccess = this.serializeValue(rootObj);
this.write("</data></wddxPacket>");
if (bSuccess)
{
return this.wddxPacket;
}
else
{
return null;
}
...
write
Appends data to the serialized data stream.
Syntax
object
.write(
str
)
object
Instance name of the WddxSerializer object.
str
String to be copied to the serialized data stream.
Return
value
String. Returns the updated serialized data stream.
Usage Internal. You do not typically call this function.
Example This example is from the WddxSerializer serializeValue function: