logo       

SyncML WBXML implementation finished (multiple code pages work now, too!): msg#00001

java.enhydra.kxml

Subject: SyncML WBXML implementation finished (multiple code pages work now, too!)

Hello everybody

Some weeks ago we had a discussion on this list (and by PM) about
extending the kxml 1.x WBXML parsers/writer to support multiple codes
pages, which in turn would allow an implementation of a SyncML conform
WBXML parser and writer.

So I sat down and invested quite some time, there were several pitfalls
and some start-over actions - but finally, I am proud to present you
what should be regarded as very early alpha code of the implementation
of a SyncML WBXML conform parser and writer, based on kXML 1.x.

As I am probably not the oldest member in the kXML community, I don't
know how you keep the code organised. Because the build.sh file did not
really work for my setup, I decided to roll my own - and use Ant with a
build.xml file instead of hardly portable and configurable shell
scripts. I ommited the 'preverify' tool from CLDC / MIDP (which
apparently is used to do some checks), because I did not manage to run
it and I had to focus on the real implementation - and not on kXML
project clean-up... :)

Ant targets that work:

apidoc generate javadoc documentation
clean clean up
compile compile the source
dist generate the distribution
examples compile the examples

I have to say that there are some (possible) issues that I cannot work
out myself - I had to hack quite a lot in the WBXML writer
(WbxmlWriter.java) and parser (WbxmlParser.java) files to let it produce
and accept multiple code pages. My coding might have broken some
functionality (altough I hope not) or introduced some subtle errors. I
was simply not able to check that (further than just checking with some
sample xml files which run fine now) with unit tests or alike (because
they simply don't exist).

I'd like to check-in the changes and additions I did to the source code
(I will need a developer account on CVS in this case), but don't know if
it's a good idea now to add this code to the CVS main branch, as it
would turn it into 'unstable' state (at least for the WBXML part).

Please share your thoughts with me.

If anyone is interested in my code (for a sneak preview), please let me
know as well, so I can make it available on a public server for
downloading.

warm regards
nicola


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise