[sync] Syncing with the P1i

Martin Zoller mailinglists at zollerit.ch
Thu Oct 1 14:29:05 UTC 2009


Good afternoon

Jan Schneider wrote:
> Please keep discussions on the list.
Sorry, I must have used "reply" instead of "reply all".

>
>> The thing is, I only have the *.wbxml files and they are binary. I 
>> think there is no <Data> tag there.
>
> You can decode them with wbxml2xml.
OK. The sizes don't make sense to me yet. Take this item, for example:

<Replace>
    <CmdID>9</CmdID>
    <Meta>
     <Type xmlns="syncml:metinf">text/x-vcard</Type>
     <Size xmlns="syncml:metinf">153</Size>
    </Meta>
    <Item>
     <Source>
      <LocURI>59</LocURI>
     </Source>
     <Meta>
      <Type xmlns="syncml:metinf">text/x-vcard</Type>
     </Meta>
     <Data><![CDATA[BEGIN:VCARD
VERSION:2.1
REV:20090910T144434Z
UID:14ecf97979509240-00e1365b3ef3b7c5-425
N:Westman;Aron;;;
TEL;WORK;VOICE;CELL:0733665130
END:VCARD
]]></Data>
    </Item>
   </Replace>

There are 165 bytes between <Data> and </Data>.
The <Size> tag specifies the size as 153. In log.txt it says:
ERR:    Item size mismatch. Size reported as 153 but actual size is 151
So I guess the <![CDATA[  ]]> tags are not counted? Because if you count
only the actual VCARD data (including BEGIN:VCARD and END:VCARD), you
get exactly 151 bytes.


Cheers
Martin



More information about the sync mailing list