I assume you are talking about an XSD Schema (please be aware that words like template, schema, form etc. have many different meanings, maybe next time put more effort in formulating your question).
So if you have a xsd no code is needed for that - just use the XSD.exe tool (Framework Tools) - for usage refer to:
http://msdn.microsoft.com/en-us/library/x6c1kb0s(v=vs.110).aspx[
^]