How do I use PowerShell to Validate XML files against an XSD? -
As part of my development, I would like to be able to validate an entire folder's XML files against an XSD File. A PowerShell function looks like a good candidate for this because I can only pipe the list of files after this: dir * .xml | Validate-Xml -Schema \ MySchema.xsd
I have considered placing the C # code in question, but I do not know how to add handlers to PowerShell.
There is a test-XML CMDlet in it the only outcome is that the extensions have not been updated for a while , But mostly work on the latest version of PowerShell (including Test-XML). Just do a gate-chaintime and pass a list of a foreshow, call test-xml on each
Comments
Post a Comment