WS return type, XML string or XmlDocument, which is better?

B

Bob

I'm developing a set of .NET WS for internal use. The server consumer is
also .NET so compatibility is not an issue. I'm weighing on whether my WS
methods should return the data as an XML string or XmlDocument object. To
return as a string, the server ends needs to convert to the XmlDocument
object to a string, and the client end needs to read the string into an
XmlDocument, not pretty, but if the return type is XmlDocument, serializing
and deserializing it take time too. Does anybody know which is better from
a performance perspective?

Thanks
Bob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top