NEW KEP: Update 'contact' object

Thomas Brüderli bruederli at
Fri Sep 16 13:27:57 CEST 2011

Alain Abbas wrote:
> Could be mor simple to put preferred="1" in the <email /> entry instead
> to make a duplicate entry <preferred> that is always hard to maintains.
> Example
> <email displayname="aa" preferred="1>aa at</email>
> <email displayname="bb"> bb at</email>

Also in this case inconsistency can arise:

<email displayname="aa" preferred="1">aa at</email>
<email displayname="bb" preferred="1">bb at</email>

> like that e are sure to not have duplicate infos and false info
> in case of :
> <email displayname="bb"> bb at</email>
> <preferred>
> <email>toto at</email>
> </preferred>

In either case, the client altering a contact object is responsible to 
ensure consistent data whereas the latter case is IMO preferable because 
it doesn't require iteration over all <email> nodes for both reading the 
preferred email address and setting/changing it.


More information about the format mailing list