Chameleon has extensive capabilities in converting between traditional HL7 formats and XML. Using these APIs is simple from C++. The process involves:
A small example program can be generated from the New Project dialog called 'XML'.