Generating XML Schema from XML

Hi,

I want to generate an XML Schema file from an XML file. Is there any way to do it?

Thanks in advance...