An elegant way to write XML with Linq

While writing out some XML to a file I found a lot nicer way to write out XML while using Linq and the XStreamingElement. The key is to use the XStreamingElement with data from a Linq datasource like so :

The above code will create the xml below (if the data is formatted correctly).:

As an added bonus … Read More

Mike GriffithAn elegant way to write XML with Linq

Saving xml from web service calls in .net.

While working on some some web service calls at work I ran into a situation where I needed to record the XML that was being passed from both sides. After doing some Google searching I came across the following code on Microsoft’s site.

Essentially this code hooks into the base web service code and saves the XML that flows … Read More

Mike GriffithSaving xml from web service calls in .net.