Yes. There are tools that can parse your XML and provide XSD. For example, Visual Studio 2005 and 2008 include the Create XSD command from the IDE, as well as the xsd.exe command-line tool that does this.
However, note that it can only output XSD from the provided XML, so XSD can only validate this file correctly. Once you have created your XSD, you should consider refactoring it against other XML files to make sure that it matches the format you want to test.
source share