Data can become corrupt in a multitude of different ways. You need easy ways to test whether your data is in the correct format. Using PowerShell and XML Schemas.
This Getting Started Guide will walk you through how to build an XML schema that can then be used to test your XML file against after any changes are made to ensure the integrity of the file is maintained.