Serializing a Document (JAXP).
1 posts in topic
Flat View  Flat View

Posted By:   Anonymous
Posted On:   Thursday, May 10, 2001 10:07 AM

I'd like to know how to serialize a Document in order to pass it to a remote method.

If you have some code or idea about how to do it, please tell me.

I wrote some code that theoretically I think should work, but I get a java.io.IOException for a 'bad descriptor'.

Re: Serializing a Document (JAXP).

Posted By:   AlessandroA_Garbagnati  
Posted On:   Monday, May 14, 2001 02:23 PM


The reason why you are not able to serialize a Document object it's, probably because org.w3c.dom.Document that extends org.w3c.dom.Node, does not implement java.io.Serializable.

You haven't posted your code, so it's hard to give you an alternative, but maybe you can think of pass the original XML unparsed file and have it parsed by the remote method.
About | Sitemap | Contact