[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [VCARDDAV] Embedding XML in vCard



Peter Saint-Andre wrote, on 2009-10-20 16:22:
> Why not specify that the element allowed in the "XML" property is
> <vcard> (which naturally can contain any of its defined children)?

Two reasons come to mind:

- A <vcard> element semantically contains a complete vCard. What the XML
property contains is a partial vCard.

- Why add it when it doesn't fix the following?

> I'm hoping we can avoid things like this:
> 
> BEGIN:VCARD
> VERSION:4.0
> XML:<fn><text>Simon Perreault</text></fn>
> XML:<n>
>        <surname><text>Perreault</text></surname>
>        <given><text>Simon</text></given>
>        <prefix><text/></prefix>
>        <suffix>
>          <text>ing. jr.</text>
>          <text>M.Sc.</text>
>        </suffix>
>      </n>
> XML:<bday><date>--0203</date></bday>
> XML:<anniversary><date-time>20090808T1430-0500</date-time></anniversary>
> XML:<sex>1</sex>
> XML:<lang><pref>1</pref><language-tag>fr</language-tag></lang>
> .
> .
> .
> END:VCARD

Worse:

BEGIN:VCARD
VERSION:4.0
XML:<vcard><fn><text>Simon Perreault</text></fn></vcard>
XML:<vcard><n>
       <surname><text>Perreault</text></surname>
       <given><text>Simon</text></given>
       <prefix><text/></prefix>
       <suffix>
         <text>ing. jr.</text>
         <text>M.Sc.</text>
       </suffix>
     </n></vcard>
XML:<vcard><bday><date>--0203</date></bday></vcard>
XML:<vcard><anniversary><date-time>20090808T1430-0500</date-time></anniversary></vcard>
XML:<vcard><sex>1</sex></vcard>
XML:<vcard><lang><pref>1</pref><language-tag>fr</language-tag></lang></vcard>
.
.
.
END:VCARD

Simon
-- 
DNS64 open-source   --> http://ecdysis.viagenie.ca
STUN/TURN server    --> http://numb.viagenie.ca
vCard 4.0           --> http://www.vcarddav.org