Get Version


→ ‘wbxml’


Wbxml converts messages for WAP mobile phones from XML to the compressed WBXML and back again. See http://www.wapforum.org for more information.


sudo gem install wbxml

Demonstration of usage

require 'wbxml'

w = WBXML.xml_to_wbxml <<END
<?xml version="1.0"?>
<!DOCTYPE si PUBLIC "-//WAPFORUM//DTD SI 1.0//EN" "http://www.wapforum.org/DTD/si.dtd">
  <indication href="http://wap.yahoo.com">
    m-Qube Msg
=> "\003\005j\000E\306\f\003wap.yahoo.com\000\001\003m-Qube Msg\000\001\001"

WBXML.wbxml_to_xml w
=> "<?xml version=\"1.0\"?>\n<!DOCTYPE si PUBLIC \"-//WAPFORUM//DTD SI 1.0//EN\" \"http://www.wapforum.org/DTD/si.dtd\">\n<si>\n  <indication href=\"http://wap.yahoo.com\">\n    m-Qube Msg\n  </indication>\n</si>\n"

How to submit patches

Read the 8 steps for fixing other people’s code and for section 8b: Submit patch to Google Groups, use the Google Group above.

The trunk repository is svn://rubyforge.org/var/svn/wbxml/trunk for anonymous access.

You can fetch the source from:

Build and test instructions

cd wbxml
rake spec
rake install_gem


Development of this wrapper was generously funded by Mobiblast.com and is free to use under the terms of the MIT license.


Comments are welcome. Send an email to Clifford Heath

FIXME full name, 21st May 2008
Theme extended from Paul Battley