[sync] WBXML support.

Anthony Mills amills at gascard.net
Thu Nov 6 15:46:37 PST 2003


Interesting.  It seems my procmail script(created with ingo) puts mail 
in different folders.

Anyway, I will start converting my WBXML code into PHP.  I am going to 
use Streams, because I think it is more elligant.  Also, I am going to 
use a SAX like API.  This has two advantages.  One it does not require 
as much memory to run, can be faster, and I don't have to rewrite as 
much.  Second, if done right, you can plugin WBXML and not have to 
change the SyncML code.

Here is how it works on my Java program. 
I check the header to see if it is wbxml encoded or not if it is I 
create a WBXML parser, else I create a default xml parser.  The 
parsers(SAX) fires methods where it is appropriate.  Because they are 
derived from the same base class, the syncml does not have to know about 
the encoding.  I do the same for the output.  If for one reason or 
another SAX will not work in PHP, you can trick it into using DOM or a 
full XML file. 

Let me know if you think this is a wrong way of doing it,

Anthony

Chuck Hagenbuch wrote:

>Quoting Anthony Mills <amills at gascard.net>:
>
>  
>
>>I guess my real question would I need to rewrite my code in PHP to get
>>it into Horde?
>>    
>>
>
>Yes, but we can help with the translation if you want.
>
>-chuck
>
>--
>Charles Hagenbuch, <chuck at horde.org>
>"I am not that interested in green food." - Average Joe
>
>  
>




More information about the sync mailing list