I am looking for an as-simple-as-possible .NET way to validate an XML file against an XSD file, like so:
validator.IsValid(xmlFile, xsdFile)
I've found a few questions (and answers) on stackoverflow but they all require a callback function. I am aiming for a oneliner since I'd like to execute this in a PowerShell:
$validator = new-object SomeValidator
$validator.IsValid(xmlFile, xsdFile)