refactor RXML to BXML (binary XML)