'Validating Xml File using xsd string in XmlSerilizer method

I have a xml file in cmd argument and xsd file in resources. var xsdstring = Recourses.EmployeeSchema; How can i use this xsdstring to validate xml file using xmlDeserlize method. I read a lot of article but can't find solution



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source