title: XML Schema: Setting a default value for a complexType?
body: <p>Let's say I want to set up a generic complexType like so:</p>
  
  <pre><code>&lt;xs:complexType name="button"&gt;
      &lt;xs:sequence&gt;
          &lt;xs:element name="id" type="xs:string" minOccurs="0" maxOccurs="1"/&gt;
          &lt;xs:element name="href" type="xs:string" minOccurs="0" maxOccurs="1"/&gt;
          &lt;xs:element name="label" type="xs:string" minOccurs="0" maxOccurs="1"/&gt;
      &lt;/xs:sequence&gt;
  &lt;/xs:complexType&gt;
  </code></pre>
  
  <p>And I want to reference that complexType in various places in my schema file like so:</p>
  
  <pre><code>&lt;xs:element name="someButton" type="button" /&gt;
  </code></pre>
  
  <p>Is it possible for me to set default values for the button sub-elements through the someButton element?  (I.e. if I want someButton to have a default label of "Go" or a default href of "index.html")</p>
  
  <p>Basically... right now I have something like</p>
  
  <pre><code>&lt;Field Name="State" DataSourceField="State" /&gt;
  </code></pre>
  
  <p>and I'm trying to remove the redundancy in as simple a manner as possible.</p>