Thanks, that does work. Wendy
"Marvin Tener" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 1. Try the following: Create a class called AbstractPayload which is an > XML enabled abstract class. Inherit all payload objects from this class. > Change the type of the payload list property to be AbstractPayload and add > the XMLPROJECTION="element" property parameter to the payload property. The > using RootObject for wrapper should do all that you need. > > 2. If the different payloads are in different namespaces, manage this by > using the NAMESPACE parameter in each class to specify the XML namespace > that the class should be in. > > 3. If you are building these pieces up not using classes, just use > RootElement for the top level containing element. Then use Element method > for each of the other tags. > > 4. The way to get the embedded classes (like Address) to be automatically > instantiated is to make them serial classes. This works with either > registered or persistent objects. Sample.Address in Sample.Person is an > example with persistent classes, but he same works for subclasses of > %RegisteredObject. See Sample package that is in the SAMPLES namespace. > > 5. In some cases, the write command is just about as easy. However, most > of the time, using %XML.Writer gives a more descriptive approach with less > code and easier maintenance as well as automatic handling of XML namespaces. > > Marvin >
