Class StaxWriteElement

All Implemented Interfaces:
AdaptrisComponent, ComponentLifecycle, ComponentLifecycleExtension, ConfigComment, MessageEventGenerator, Service, StateManagedComponent

@ComponentProfile(summary="Write the current message as XML output via STaX", tag="service,transform,xml", since="3.6.6") public class StaxWriteElement extends StaxXmlOutput
Write the contents of the current message to the output created by StaxStartDocument.

For this service to work, the underlying AdaptrisMessageFactory associated with the AdaptrisMessage instance must be a FileBackedMessageFactory and StaxStartDocument must have precede this service and subsequent processing must include StaxEndDocument to commit the output; so effectively your processing chain should be

 
   <stax-xml-start-document/>
     ... 0 or more instances of <stax-xml-write-element/>
   <stax-xml-end-document/>
 
 

See Also:

In the adapter configuration file this class is aliased as stax-xml-write-element which is the preferred alternative to the fully qualified classname when building your configuration.