Determines whether a value is a well-formed WDDX packet.
True, if the value is a well-formed WDDX packet; False, otherwise.
Decision functions, XML functions
IsWDDX(value)
New in ColdFusion MX: if the value parameter is not a WDDX packet, ColdFusion returns False. (In earlier releases, ColdFusion threw an error.)
| Parameter | Description |
|---|---|
| value |
A WDDX packet |
This function processes a WDDX packet with a validating XML parser, which uses the WDDX Document Type Definition (DTD).
To prevent CFWDDX deserialization errors, you can use this function to validate WDDX packets from unknown sources.
<cfset packet="
<wddxPacket version='1.0'>
<header></header>
<data>
<struct>
<var name='ARRAY'>
<array length='3'>
<string>one</string>
<string>two</string>
</array>
</var>
<var name='NUMBER'>
<string>5</string>
</var>
<var name='STRING'>
<string>hello</string>
</var>
</struct>
</data>
</wddxPacket>"
>
<hr>
<xmp>
<cfoutput>#packet#
</xmp>
IsWDDX() returns #iswddx(packet)#<br>
</cfoutput>
ColdFusion 9 | ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting
Version 6
Comments are no longer accepted for ColdFusion MX. ColdFusion 8 is the current version.
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/coldfusion/6/CFML_Reference/functions-pt1143.htm