Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
XML Streams Module User's Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

2.3 When to Use XML Streams

A common use for XML streams would be to persist state information about an application at shutdown and then restore that state when the application was next started.

By serializing the objects in XML format, the files on disk containing the serialization data are human readable. These files could potentially be read directly to access the data when the application was not running. XML is becoming widely used in distributed environments to transmit data between processes. With XML streams, processes can also pass objects or object references back and forth. This use is illustrated in Figure 1. It is also the basis for the examples in the chapters of this book.

Figure 1: Object Serialization Across a Network

In many real world situations, the applications at either end of a distributed connection have different requirements for the form of the XML document being passed. For example, an XML document based on the purchase order format of one company might not correspond well to the purchase order format of the receiving company.

Such mismatches can be handled through a transformation of the XML stream. The XML Streams Module supplies classes to support several types of XML transformations. They are illustrated in the following chapters using detailed examples:



Previous fileTop of DocumentContentsIndex pageNext file

© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.