The function Test-XmlBySchema takes two mandatory parameters: $XmlFile and $SchemaPath. These parameters are validated by the ValidateScript and ValidatePattern ...