title: Cannot generate classes from SAML2.0 XSD schemas
body: <p>I try to generate classes from the following SAML2.0 XSD schemas:</p>
  
  <ol>
  <li><a href="http://docs.oasis-open.org/wsfed/authorization/v1.2/authorization.xsd" rel="nofollow">http://docs.oasis-open.org/wsfed/authorization/v1.2/authorization.xsd</a> - <strong>fail</strong></li>
  <li><a href="http://docs.oasis-open.org/wsfed/federation/v1.2/federation.xsd" rel="nofollow">http://docs.oasis-open.org/wsfed/federation/v1.2/federation.xsd</a> - <strong>fail</strong></li>
  <li><a href="http://docs.oasis-open.org/wsfed/privacy/v1.2/privacy.xsd" rel="nofollow">http://docs.oasis-open.org/wsfed/privacy/v1.2/privacy.xsd</a> - <strong>success</strong></li>
  </ol>
  
  <p>I tried to use <code>xsd.exe</code> and <code>xsd2code</code> tools, but each time I try to generate #1 and #2 I get following errors for the respective schemas:</p>
  
  <ol>
  <li>Both tools throw this error: <em>Schema validation warning: The '<a href="http://www.w3.org/2001/04/xmlenc#:EncryptedData" rel="nofollow">http://www.w3.org/2001/04/xmlenc#:EncryptedData</a>' element is not declared.
  Error: Error generating classes for schema '%MYPATH%\authorization'. The element '<a href="http://www.w3.org/2001/04/xmlenc#:EncryptedData" rel="nofollow">http://www.w3.org/2001/04/xmlenc#:EncryptedData</a>' is missing.</em></li>
  <li>Two different errors:
  <ul>
  <li><code>xsd.exe</code>:
  <em>Error: Error generating classes for schema '%MYPATH%\federation'. The element '<a href="http://docs.oasis-open.org/wsfed/authorization/200706:ClaimType" rel="nofollow">http://docs.oasis-open.org/wsfed/authorization/200706:ClaimType</a>' is missing.</em></li>
  <li><code>xsd2code</code>: <em>Error Type '<a href="http://www.w3.org/2001/04/xmlenc#:EncryptionMethodType" rel="nofollow">http://www.w3.org/2001/04/xmlenc#:EncryptionMethodType</a>' is not declared.</em></li>
  </ul></li>
  </ol>
  
  <p>To solve problems related to <em>xmlenc</em> namespace I saved remote <em>xenc-schema.xsd</em> to my local path, but I still get the same error, so it's not timeout problem.</p>
  
  <p>I don't understand what could be the problem with the provided schemas. How to solve all of the mentioned problems?</p>