Yeah, just posting code. The only issue with the code is that some Types cannot be serailized to XML. I think it is because they do not support ISerializable, but I could be wrong. At any rate, if they cannot be serialized, an exception will be thrown alerting you that it cannot be.