Marshals the given JAXB object pObject
to the {@link javax.xml.transform.Result} pTarget
. AllJAXB provider must support {@link javax.xml.transform.dom.DOMResult}, {@link javax.xml.transform.sax.SAXResult}, and {@link javax.xml.transform.stream.StreamResult}, which can easily be mapped to {@link #marshal(Object,org.w3c.dom.Node)}, {@link #marshal(Object,org.xml.sax.ContentHandler)}, {@link #marshal(Object,java.io.OutputStream)}, or {@link #marshal(Object,java.io.Writer)}. The use of a {@link javax.xml.transform.Result} as a target isn'tportable beyond these subinterfaces.
@param pObject The JAXB object being marshalled.
@param pTarget The {@link Result} being created.
@throws JAXBException An unexcpected problem occurred. This may be used,for example, to throw a nested {@link java.io.IOException}.
@throws MarshalException Whereever possible, one should throw a{@link MarshalException}, and not a {@link JAXBException}.
@throws IllegalArgumentException Any of the parameters was null.
@see #JAXB_SCHEMA_LOCATION
@see #JAXB_NO_NAMESPACE_SCHEMA_LOCATION