Validate text file (not XML) with XSD?
<p>I need to validate a flat file ( text file ) with an XSD file (schema). I found  to do this for a XML file but not for text file.</p>

<p>Is there any base class to do that ?</p>

<p>The contents of the text file is as follows:</p>

<pre><code>Header

SubHeader (many)

Records (many)

Footer
</code></pre>