I know it is possible to generate skeleton XSD from XML. For example this post has good answers.
The question is how to generate XSD based on several
I use this : https://xmlbeans.apache.org/docs/2.0.0/guide/tools.html#inst2xsd
It takes several xml instances and create xsd for you. There are 3 "schema design types" you can choose from. The default one works well for me.
It's a great tool and I have been using it for years. Not sure if the project is active though. Give it a try.