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
This was the link i was looking for. Just thought I would share in case it helps someone else: http://blog.altova.com/generating-a-schema-from-multiple-xml-instances/