title: Using xsd to generate XML in .net
body: <p>I'm working in a .net application where we need to generate XML files on the fly based on the dataset retrieved from the db. XML schema should be based on a xsd provided. I would like to know is there any way to bind or associate a dataset or each datarow with the xsd. I dont know whether it can be done at all or i may be thinking usage of XSDs at a wrong perspective. If i'm wrong please correct me and let me know of the best way to associate a data retrieved from db to a predefined schema.Thanks.</p>
  
  <p>Update: If my perspective on xsd is wrong please shed some light on how xsds are used(or perhaps point me to some useful links).</p>