CFWDDX

I l @ ve RuBoard

<CFWDDX>

Used to serialize and deserialize data structures to an XML-based format.

Syntax

 <cfwddx input="variable_to_input"          output="name_of_variable_to_save_output_to"         action="action_attribute"> 

Attributes

Input: Required. The name of the data structure you want to work with.

Output: Required. The name of the variable that you want the output stored in.

Action: This tells ColdFusion what action you want to perform (CFML2WDDX or WDDX2CFML).

These are not all the attributes for <cfwddx> , but they are the only ones that you worked with in the context of this book.

Example

 <!--- Serialize a structure to WDDX from CFML --->  <cfwddx action="CFML2WDDX" input="#productinfo#" output="productinfo"> 
I l @ ve RuBoard


Macromedia ColdFusion 5. Training from the Source
Macromedia ColdFusion 5 Training from the Source (With CD-ROM)
ISBN: 0201758474
EAN: 2147483647
Year: 2002
Pages: 99
Authors: Kevin Schmidt

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net