I have created a separate PowerShell file which can perform XSD validation on XML files with an inline schema reference. Works really well. Download and howto are available on https://www.zomers.eu/knowledge/PowerShell/Pages/How-to-validate-XML-against-an-XSD-schema-using-PowerShell.aspxhttps://knowledge.zomers.eu/PowerShell/Pages/How-to-validate-XML-against-an-XSD-schema-using-PowerShell.aspx