You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xmlbeans-user@xml.apache.org by "Melton, James" <jm...@bloomberg.com> on 2004/04/26 20:30:29 UTC

restriction - totalDigits

Does XMLBeans support schema restrictions such as totalDigits? I have
this as part of a schema I compiled: 

  <xs:element name="MyNum" type="MyNumType"/>

  <xs:simpleType name="MyNumType">
    <xs:restriction base="xs:short">
      <xs:totalDigits value="4"/>
    </xs:restriction>
  </xs:simpleType>
 
No error was detected when I used the resulting code to parse document
instances with 5 digit values inside MyNum.

Thanks,
Jim.


- ---------------------------------------------------------------------
To unsubscribe, e-mail:   xmlbeans-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-user-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/