pythons60syncmlwbxml

Decoding a WBXML SyncML message from an S60 device


I'm trying to decode a WBXML encoded SyncML message from a Nokia N95. My first attempt was to use the python pywbxml module which wraps calls to libwbxml. Decoding the message with this gave a lot of <unknown> tags and a big chunk of binary within a <Collection> tag. I tried running the contents of the <Collection> through by itself but it failed. Is there something I'm missing?

Also, does anyone know of a pure python implementation of a wbxml parser? Failing that a command line or online tool to decode these messages would be useful -- it would make it a lot easier for me to write my own...


Solution

  • I ended up writing a python parser myself. I managed to do it by following the spec here: http://www.w3.org/TR/wbxml/

    And then taking the code tables from the horde.org cvs.

    The open mobile alliance's site and documentation are terrible, this was a very trying project :(