title: How to parse a XSD file
body: <p>I am writing a code generation tool that will take in a XSD file generated from Visual Studio's Data Set Generator and create a custom class for each column in each table. I already understand how to implement a <a href="http://msdn.microsoft.com/en-us/library/bb169282.aspx" rel="nofollow noreferrer"><code>IVsSingleFileGenerator</code></a> to do the code generation and how to turn that single file generator in to a <a href="http://www.codeproject.com/KB/cs/VsMultipleFileGenerator.aspx" rel="nofollow noreferrer">multi-file generator</a>. However it seems the step I am having the most trouble with is the one that should be the most simple. I have never really worked with XML or XML-Schema before and I have no clue what is the correct way to iterate through a XSD file and read out the column names and types so I can build my code.</p>
  
  <p>Any recommendation on a tutorial on how to read a XSD file? Also any recommendations on how to pull each <code>xs:element</code> that represents a column out and read its <code>msprop:Generator_UserColumnName</code>, <code>type</code>, and <code>msprop:Generator_ColumnPropNameInTable</code> properties from each element.</p>