I have a web method which takes an XmlDocument
as parameter. On the client side, I create custom
Xml by using XmlTextWriter.

Is there an easy way to pass the Xml
generated by the XmlTextWriter to the web
method which takes XmlDocument ?

I can think of :

- use XmlTextWriter to create XML
- use XmlDocument.Load to load
generated XML. Send the XmlDocument
as parameter.

Is there a more direct/faster way ?

TIA,
Stephen