Whatever message this page gives is out now! Go check it out!

SerializeXML

Last update:
May 18, 2026

Description

Serializes a ColdFusion object to XML.

Returns

String

Function syntax

serializeXml( Object objToBeSerialized, boolean useCustomSerializer )

History

ColdFusion 11: Added this function.

Parameters

ParameterDescription
objToBeSerialized
Required. An object to be serialized.
useCustomSerializerBoolean. Whether to use the custom serializer or not. The default value is true. The custom serializer will be always used for XML deserialization. If false, the XML/JSON deserialization will be done using the default ColdFusion behavior. If any other type is passed with useCustomSerializer as false, then TypeNotSupportedException will be thrown.
For more information see  REST Enhancements in ColdFusion 11 .

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page