Hi all –
I’m working with a schema that has the following simple type: <xs:simpleType name="DateTimeGroupType"> <xs:annotation> <xs:documentation>A date time group always in Zulu time.</xs:documentation> </xs:annotation> <xs:restriction base="xs:dateTime"> <xs:pattern value="^(3[0-1]|2[0-9]|1[0-9]|0[1-9])(0[0-9]|1[0-9]|2[0-3])([0-5][0-9])\sZ\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s[0-9]{2}$"/> </xs:restriction> </xs:simpleType> I thought, perhaps naively, that specifying a pattern would force the XMLBeans generated classes to validate against that pattern including producing a String representation conforming to that pattern when I call getStringValue(). This is not the result that I’m getting but perhaps I’m doing something wrong with the definition. Does anyone have any insight or experience doing the same thing? Thanks, Chris