title: XML Schema can an element have multiple datatypes?
body: <p>I have an element in my XML file that can have the value of either decimal or date. In the XML schema for validation, I have specified it as:</p>
  
  <pre><code>&lt;xs:element name = "data" type="xs:decimal"/&gt;
  </code></pre>
  
  <p>or I can specify it as <code>type="xs:date"</code>. </p>
  
  <p>This only validates it as date or decimal. Is there another datatype or something that will allow me to validate this element regardless of whether it has a date or decimal value?</p>