You can use the XSD validation in SSIS. However, C# allows you to do more granular error checking, as opposed to doing XML structure validation. If you need to accommodate for errors in data as well as errors in XML structure, then a C# task would be more of the way to go.