On Wed, 16 Jan 2002, Lev Gelfer wrote: > > I need to send an XML document to a client. What would be > faster: to serialise DOM tree to the client (if 'yes' than > how can I do it) or to convert DOM tree to a String and send > it to the client (that what I do currently). I suspect that > the second method is not as efficient as it should be. Please > let me know.
i think this is not a question of performance. its a question of compatibility. because in the case that your are sending a dom tree to the client he will has to install the same version of the dom tree implementation that you are using. and this is sometimes not possible. i have implemented some servives (not especially with soap) which returne non-standard java objects in their serialized form. was a big problem if the client lib versions differs! cu
