Re: Time wihtout Seconds

Please try this,

<xs:element name="time" type="timeType" />

 <xs:simpleType name="timeType">
   <xs:restriction base="xs:string">
     <xs:pattern value="[0-9][0-9]:[0-5][0-9]" />
   </xs:restriction>
 </xs:simpleType>

On Sun, Oct 12, 2008 at 4:12 AM, Rowan Sylvester-Bradley
<rowan@sylvester-bradley.org> wrote:
> How do I write a schema that will validate an element containing a time in
> the format hh:mm (without any seconds)? I'm trying to write a schema for an
> existing XML file that's generated by a piece of software which I have no
> access to, so I can't just add the seconds...
>
> Thanks - Rowan



-- 
Regards,
Mukul Gandhi

Received on Monday, 13 October 2008 08:25:21 UTC