I want to use the RTK to read WBXML file and write an XML out of it.

Can anyone give me some pointers how to proceed?

I have both the Handle functions for each WBXML command and Build functions to write the XML file.

But i think i would either require two instances of the smlInit or otherwise should i write a function in mgrinstancemgr.c to switch it to WBXML to XML while Building the command.

thanks