public interface Payload
extends java.io.Serializable
Example:
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
Document doc =
dbf.newDocumentBuilder().parse(new InputSource(new StringReader(payloadXML)));
// Prepare the payload for inclusion in the Message object
Map<String, Element> msgParts = new HashMap<String, Element>();
msgParts.put("msgPart", doc.getDocumentElement());
Payload<Element> payload = PayloadFactory.createXMLPayload(msgParts);