Shallow Copy XMLReader to XMLWriter
I was working on an application last week that required that I stream in the content of one XML document and selectively make copies of the data into another XML document. I wanted to use a XMLReader and XMLWriter to perform this work; however, there wasn’t a way exposed by the .Net framework to only do a shallow copy of the current node on the XMLReader. Luckily I stumbled across this little gem where Mark Fussell had already done the work for me. He has a great little method that will perform a shallow copy of a node for you.