A SAX Based (K)Java WBXML Parser
The WAP Forum has defined a simple binary
encoding for XML (WBXML). Here you can download a limited SAX-based parser taking a
WBXML Stream as input. New: A corresponding SAX based WML parser built
on top of the WBXML parser is also included.
Possible advantages, especially for use on PDAs are
- parsing the WBXML seems simpler than parsing native XML
- Sending WBXML over a wireless connection is cheaper than sending XML
- A WBXML/WML implementation is neded for a WML browser
The parser class file takes about 4.6 k without the required SAX
classes and interfaces (also about 5 k). Currently, only a single code
page is supported. The SAX DocumentHandler interface is supported, but the
parser interface differs in order to include the WAP extensions and
to keep it small enough to fit into the KVM.
For details about WBXML, please read the WBXML specification at www.wapforum.org