Hi, I have simple type defined as:
<xs:simpleType name="revisionType"> <xs:restriction base="xs:string"> <xs:minLength value="1"/> <xs:pattern value="[A-Z]+[0-9]*[A-Z]*"/> </xs:restriction></xs:simpleType>
The XSD file validates fine but Xerces based validator gives error: Exception in thread "main" com.sun.org.apache.xerces.internal.impl.io.MalformeByteSequenceException: Invalid byte 1 of 1-byte UTF-8 sequence. But it works when the simpletype element is defined as:
<xs:simpleType name="revisionType"> <xs:restriction base="xs:string"> <xs:minLength value="1"/> <xs:pattern value="[A-Z]+[0-9]*"/> </xs:restriction></xs:simpleType>
Why is that so? Is it an issue with Xerces?