deserializeXML

Deserializes a string in XML format to a ColdFusion object.

deserializeXML( String strToDeserialize, boolean useCustomSerializer ); → returns Object

This function requires Adobe ColdFusion. Not supported on Lucee, OpenBD, etc.

deserializeXML Argument Reference

StringToBeDeserialized
Required

A string that needs to be deserialized.

useCustomSerializer
Required

Boolean. 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.

Examples sample code invoking the deserializeXML function


Tag Syntax

<cfset value = deserializeXML(toString(xmlDoc.root.XMLChildren[i].XMLChildren[1]), true)> 

Fork me on GitHub