title: Override default-value for attribute from XSD in derived class
body: <p>I have an XSD-file containing some classes as follows:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;schema xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="NS"/&gt;
    &lt;import namespace="NS" schemaLocation="Reference.xsd"/&gt;
    &lt;element name="Derived" substitutionGroup="lbm:BaseClass" type="lbm:DerivedType"/&gt;
    &lt;complexType name="DerivedType"&gt;
      &lt;complexContent&gt;
        &lt;extension base="lbm:BaseClass"&gt;
          &lt;sequence&gt;
            ...
          &lt;/sequence&gt;
        &lt;/extension&gt;
      &lt;/complexContent&gt;
    &lt;/complexType&gt;
  &lt;/schema&gt;
  </code></pre>
  
  <p>Where <code>NS</code> corresponds the namespace indicated by <code>lbm</code>. </p>
  
  <p>Within <code>Reference.xsd</code> the class <code>lbm:BaseClass</code> is defined as this:</p>
  
  <pre><code>&lt;element name="BaseClass" type="lbm:BaseClassType"/&gt;
  &lt;complexType name="BaseClassType"&gt;
    &lt;complexContent&gt;
      &lt;sequence&gt;
        &lt;element default="270020000" name="ObjektTyp" type="lbm:MyEnum"/&gt;
      &lt;/sequence&gt;
    &lt;/complexContent&gt;
  &lt;/complexType&gt;
  </code></pre>
  
  <p>Now what I want to do is to let <code>Derived</code> inherit <code>BaseClass</code> but with another default-value for <code>ObjektTyp</code>. I already tried to override it within derived by adding the appropriate <code>ObjektTyp</code>-tag. However when I use xsd.exe to autogenerate the classes on .NET a new property of the same type but with name <code>ObjektTyp1</code> is created. </p>
  
  <p>Is there any way I can define another default-value within a derived class for a property defined in a base-class?</p>
  
  <pre><code>&lt;element default="270020191" name="ObjektTyp" type="lbm:MyEnum"/&gt;
  </code></pre>