• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 16. Using WDDX > Using WDDX Packets to Store Information in Files

Using WDDX Packets to Store Information in Files

In the listings you've seen so far in this chapter (especially Listing 16.3), you have learned how easy it is to convert any variable or data structure to XML with the <cfwddx> tag. Because WDDX packets are so easy to create, and contain just about any type of information, and because the packet itself is just simple text (as is any XML document), ColdFusion developers often use WDDX as a way to store complex information in places where it's usually only possible to store text.

The next sections discuss storing WDDX packets in text files, client variables, and string columns in database tables. These are just examples; you can apply the basic idea in other ways as well. Anytime you want to store any kind of information in a place that normally can store only text, consider using WDDX to get the data into a simple text format. It's fast, simple, proven, and lightweight. Best of all, it's supported not only by ColdFusion but by ASP, .NET, Java, PHP, Perl, and all the other environments listed in the earlier section “Tools and Languages Supported by WDDX.”


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint