<?xml version="1.0"?> 

<schema targetNamespace="http://www.terasoft.com.au" 
        xmlns="http://www.w3.org/1999/XMLSchema" 
        xmlns:error="http://www.terasoft.com.au" 
> 

  <attribute name="contactEmail"> 
    <simpleType baseType="string"> 
      <pattern value="(.)+@(.)+"/> 
    </simpleType> 
  </attribute> 

  <attribute name="newPassword"> 
    <simpleType baseType="string"> 
      <pattern value="(.){6,20}"/>
    </simpleType> 
  </attribute> 

  <attribute name="confirmPassword"> 
    <simpleType baseType="string"> 
      <pattern value="(.){6,20}"/>
    </simpleType> 
  </attribute> 

  <attribute name="firstName"> 
    <simpleType baseType="string"> 
      <pattern value="(.){3,30}"/>
    </simpleType> 
  </attribute> 

  <attribute name="surname"> 
    <simpleType baseType="string"> 
      <pattern value="(.){3,30}"/>
    </simpleType> 
  </attribute> 

  <attribute name="contactPhone1"> 
    <simpleType baseType="string"> 
      <pattern value="(\d|-|\s|\(|\)){6,15}"/> 
    </simpleType> 
  </attribute>

  <attribute name="contactPhone2"> 
    <simpleType baseType="string"> 
      <pattern value="(\d|-|\s|\(|\)){6,15}"/> 
    </simpleType> 
  </attribute>

  <attribute name="mobile"> 
    <simpleType baseType="string"> 
      <pattern value="(\d|-|\s|\(|\)){6,15}"/> 
    </simpleType> 
  </attribute>
  
  <attribute name="website"> 
    <simpleType baseType="string"> 
      <pattern value="(.){5,100}"/>
    </simpleType> 
  </attribute> 

  <attribute name="companyName"> 
    <simpleType baseType="string"> 
      <pattern value="(.){2,80}"/>
    </simpleType> 
  </attribute> 

  <attribute name="street"> 
    <simpleType baseType="string"> 
      <pattern value="(.){3,35}"/>
    </simpleType> 
  </attribute> 

  <attribute name="locality"> 
    <simpleType baseType="string"> 
      <pattern value="(.){3,35}"/>
    </simpleType> 
  </attribute> 

  <attribute name="pcode"> 
    <simpleType baseType="string"> 
      <pattern value="(\d){4}"/>
    </simpleType> 
  </attribute> 

  <attribute name="mystate"> 
    <simpleType baseType="string"> 
      <enumeration value="VIC" /> 
      <enumeration value="NSW" /> 
      <enumeration value="QLD" /> 
      <enumeration value="NT" /> 
      <enumeration value="WA" /> 
      <enumeration value="SA" /> 
      <enumeration value="TAS" /> 
    </simpleType> 
  </attribute> 

  <attribute name="fieldVal1"> 
    <simpleType baseType="string"> 
      <pattern value="(.){2,30}"/>
    </simpleType> 
  </attribute> 

  <attribute name="fieldVal2"> 
    <simpleType baseType="string"> 
      <pattern value="(.){2,30}"/>
    </simpleType> 
  </attribute> 

  <attribute name="fieldVal3"> 
    <simpleType baseType="string"> 
      <pattern value="(.){2,30}"/>
    </simpleType> 
  </attribute> 

  <attribute name="creditCardNum"> 
    <simpleType baseType="string"> 
      <pattern value="(\d){12,19}"/>
    </simpleType> 
  </attribute> 

  <attribute name="creditCardExpiry"> 
    <simpleType baseType="string"> 
      <pattern value="(\d){4}"/>
    </simpleType> 
  </attribute> 

  <attribute name="cvv"> 
    <simpleType baseType="string"> 
      <pattern value="(\d){3,4}"/>
    </simpleType> 
  </attribute> 

  <attribute name="creditCardNum2"> 
    <simpleType baseType="string"> 
      <pattern value="(\d){16,20}"/>
    </simpleType> 
  </attribute> 

  <attribute name="creditCardExpiry2"> 
    <simpleType baseType="string"> 
      <pattern value="(\d){4}"/>
    </simpleType> 
  </attribute> 

  <attribute name="cvv2"> 
    <simpleType baseType="string"> 
      <pattern value="(\d){4,6}"/>
    </simpleType> 
  </attribute> 

  <attribute name="numEyelets">
    <simpleType baseType="integer">
      <minInclusive value="0" />
    </simpleType>
  </attribute>

</schema>

