> do u mean sending the string to client and in client
> recreate the xml document and parse it?
Yep. XML can be used as a serialization mechanism, it's one of it's uses: a definition of serialization is the representation of an in-memory object in a format that can then be used to re-create that object at another place or time, and XML can be used to achieve this. There's little point serializing something that's already serialized
In this case you do not even need to send xml document because
you wiil first convert your object to Xml document then
send it to network and at other end you have to again parse it convert into a object ..
instead of doing that you can simply send the object as it is. u can save the overhead to marshal and unmarshal of your data object and xml.
> In this case you do not even need to send xml
> document because
> you wiil first convert your object to Xml document
> then
> send it to network and at other end you have to again
> parse it convert into a object ..
>
> instead of doing that you can simply send the object
> as it is. u can save the overhead to marshal and
> unmarshal of your data object and xml.
Although serializing in a binary format has it's downsides. For one, if the class changes, this can break the deserialization. For another, it restricts the use to Java programs, whereas XML serialization can integrate disparate systems in different technologies (see: SOAP et al)