Manually construct the result XML in web service?http://forums.asp.net/t/410114.aspx/1?Manually+construct+the+result+XML+in+web+service+Thu, 04 Dec 2003 15:15:08 -0500410114410114http://forums.asp.net/p/410114/410114.aspx/1?Manually+construct+the+result+XML+in+web+service+Manually construct the result XML in web service? It was a simple web method like this: <pre class="prettyprint">[WebMethod] public DataSet test() { DataSet ds = new DataSet(); ds ...; return ds; }</pre> Now I need more control over the result. So I'm trying to use XMLTextWriter to manually construct the result. But all the examples are reading/writing an XML file and XMLTextWriter also requires an System.IO.Stream ... How do I use it in web service? What is the return type if I manually construct an XML? How to redirect the IO stream to the return ... Hope I explained my point? Thanks for help. 2003-12-04T14:53:25-05:00