public void checkValid() throws DatatypeException {
   baseType.checkValid(buffer.toString(), context);
 }