fun marshal(graph: Any, result: Result): Unit
Marshals the object graph with the given root into the provided javax.xml.transform.Result.
This implementation inspects the given result, and calls marshalDomResult, marshalSaxResult, or marshalStreamResult.
graph - the root of the object graph to marshal
result - the result to marshal to
IOException - if an I/O exception occurs
XmlMappingException - if the given object cannot be marshalled to the result
IllegalArgumentException - if result if neither a DOMResult, a SAXResult, nor a StreamResult
See Also
#marshalDomResult(Object, javax.xml.transform.dom.DOMResult)#marshalSaxResult(Object, javax.xml.transform.sax.SAXResult)#marshalStreamResult(Object, javax.xml.transform.stream.StreamResult)