Parses the XML input into a DOM.
Parameters: in - input stream containing XML DOM object throws: java.io.IOException - failed to read document from stream
Serializes a DOM object to the specified stream.
Parameters: doc - DOM reference Parameters: out - output stream throws: java.io.IOException - failed to write document to stream