Generating an xml file using xsd and send it server


I am trying to generate a xml file based on the input elements in the form [ using xsd] and send it to server using cURL?

Can any onlp me with generating xml from XSD using php?

Any reference appriciated…

Thank you.