title: I need to attach an XML file to a SOAP object working with SAAJ in Java 7
body: <p>I am using SAAJ with Java 7 to create and send SOAP messages.  I have everything set except for the body.  I need to get the contents of an XML file into the body of the SOAP message without any formatting errors.  I have tried using a DOM document, I've tried reading it in line-by-line with a scanner and manually adding it, but none of them work.  The DOM document solution ended up merely deleting the header and body of the message and my other solution keeps overwriting the "&lt;" and ">" characters with "&lt;" and "&gt;" respectively.  I've tried using String.replaceWith() to hack this but the change is happening as the SOAP message is sent.  Does anyone know how I can accomplish this without having to code a giant parser that will create SAAJ objects from xml files?  Thanks.</p>