You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by ch...@gmx.de on 2002/03/05 17:44:15 UTC

DataTypeValidator

need help! i'm a beginner.
i want to check, if a date is valid. In Class DateTimeDatatypeValidator i
found a method parse(), but i don't know how to use it. i tried this:

public class DateTimeValidation extends DateTimeDatatypeValidator {

public void toParse(String date) {
   try{
      int[] dateTime = parse(date, new int[14]);
    }catch (SchemaDateTimeException e)
{System.out.println("falseDatatype");}
  }
}

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org