RFC: KEP3: Introduction of 'subevent' sub-tag for 'exclusion' from 'recurrence' (revision #10661)

Alain Abbas alain.abbas at libertech.fr
Fri Dec 10 16:14:13 CET 2010


Georg C. F. Greve a écrit :
> Hi Alain,
>
> On Monday 06 December 2010 21.36:54 Alain Abbas wrote:
>   
>> but it s more simple to process all at the same level for alghorithm as
>> subevent Poom model in active sync is like that and the object model in
>> outlook i think too if the deletion is in the same tag you have just a loop
>> and a test . if there are at different level you must have 2 loops with the
>> risk of error if a date is in the exclusion and in the subevent too
>>     
>
> I must say this defeats my expectation of how this would work practically.
>
> Normally I'd parse XML through one of the parsers, which would give me a tree 
> structure in memory. From that came the expectation that a check
>
> 	if ( exception.subevent != null) { // treat as deletion
>
> would be as simple as
>
>   
> 	if ( exception.delete == 1) { // treat as deletion)
>   
in case of deletion
foreach (subevents as exception)
{
              if (exception.delete == 1 )
             {
                      //delete date
                      exception.startdate ......
              }
             else
             {
                   //modification
                      foreach (exception as attribute)
                      {
                               ///exception
                               //general traitment
                               //of the exception
                        }
                }
  }    
the loop is more simple
> Help, anyone? How do others see this?
>
> Best regards,
> Georg
>
>
>   




More information about the format mailing list