Summary: Learn to use Windows PowerShell to validate that an XML document is well formed.
How can I use Windows PowerShell to test that anXML document is well formed?
Use the Test-XML cmdlet from the PSCX:
Note PSCX is a community-produced project that is available for free from CodePlex.
I have written quite a bit about downloading, installing, and using this great resource.
For more information, see this collection of Hey, Scripting Guy! Blog posts.