Thanks for the response Kyle.
I am using the xerces API and there is one class named 'XMLSerializer' in the package org.apache.xml.serialize that allows the serialization of Document object. That is what they say, but I can't see the phrase 'implements java.io.Serializable' phrase anywhere in the Document or its super interfaces.
When I try to serialize the Document object with the XMLSerializer and send the Document object from EJB it gives the error 'org.w3c.dom.Document' not found while generating the deployment code itself. I think it is not being serialized.
If it is being serialized do you know how to make this org.w3c.dom.Document available to the runtime environment? I am adding all the required jar files to the
Java Build Path. It doesn't give any error if I just use the xml api in the session bean methods to display some xml (not for returning from the method).
Thanks again.
Sailu