Validation with specfic input types generated from an XML
<p>I am in the midst of trying to come up with the best way for some validation within a generic MVC based XML which outputs the following.</p>

<pre><code>&lt;input name="xxxx" value="xxxx" ValidationType="Email" IsRequired="True" /&gt; 
</code></pre>

<p>Basically if things contain certain elements, we validate it, if it's required than we do, if not, we don't etc etc. I tried some things but it seems the best way to do this would be a the JQuery "contains" method. I also know that that "ValidationType" is not really a valid attribute of input, but the XML outputs it this way. Any feedback would be appreciated. Thanks. I'm trying to do this as non complicated as possible :)</p>
