title: How do I use PowerShell to Validate XML files against an XSD?
body: <p>As a part of my development I'd like to be able to validate an entire folder's worth of XML files against a single XSD file. A PowerShell function seems like a good candidate for this as I can then just pipe a list of files to it like so:   dir *.xml | Validate-Xml -Schema .\MySchema.xsd</p>
  
  <p>I've considered porting C# code from the <a href="https://stackoverflow.com/questions/751511/validating-an-xml-against-referenced-xsd-in-c">Validating an Xml against Referenced XSD in C#</a> question, but I don't know how to Add handlers in PowerShell.</p>