wxWidgets documentation for wxString states:
If you built wxWidgets with wxUSE_STL set to 1, the implicit conversions to both narrow and wide C strings are disabled and replaced with implicit conversions to std::string and std::wstring.
The implicit conversions uses c_str(). If the call to TinyXML needs multibyte then mb_str() should have been used from start.