When I do the following in the characterhandler: ModulesXMLParser *modxml = (ModulesXMLParser *) userData; modxml->m_chars.AppendData((void *) s, len * 2); it works. Note the len * 2. Is this mentioned in the docs somewhere? If not, please add it. Franky.