“XML Serialization Essentials” explained that serialization is a useful way to implement component-to-component communication or application-to-application communication. This chapter guides you through the creation of a simple WebObjects application that shows how serialization, both binary-based and XML-based, can be implemented.
The chapter is divided in two sections:
“Binary Serialization Example” walks you through the creation of the Serialization project, which includes an example utility class called BinarySerializer, used to serialize objects and data into binary files.
“XML Serialization Example” shows how to use WebObjects XML serialization with the example class named XMLSerializer to serialize objects and data. It demonstrates that serializing to XML documents is just as easy as serializing to binary files. In addition, it teaches you how to include keys in the XML documents that represent serialized data. These keys can make it easier to transform those documents into a format that other applications expect. Finally, it explains the use of NSXMLOutputFormat objects to set output-format properties for NSXMLOutputStream objects.
Binary Serialization Example
XML Serialization Example
Last updated: 2005-08-11