Hi there,
i tried to parse a const char* via MeMBufInputSource in the following way:
CString RecieveString= "...." //Using Unicode and
//wchar_t as a built-in type
const char* gXMLInMemBuf = XMLString::transcode(RecieveString.GetString());
MemBufInputSource* memBufIS = new MemBufInputSource
(
(const XMLByte*)gXMLInMemBuf
, static_cast<const XMLSize_t>(strlen(gXMLInMemBuf))
, "test"
, false
);
parser->parse(memBufIS); //Error on WinXP
This is working fine on my system (Vista Business 32). I am using VC++9
and Xerces 3.0.1.
But I am running in troubles on Win XP 32. An Error is thrown with the
Message :
error: invalid byte 't' at position 2 of a 4-byte sequence
The resulting DOMDocument* from parsing was thought as input for xsd
from CodeSynthesis. So I tried it the other way and put "gXMLInMemBuf"
int a stringstream as input for xsd.
Different solution - same problem. I suppose that this is a problem of
the encoding i can't figure out (or mayby sth different).
Any suggestions would be really helpfull because this is part of my work
for study and i am trying to get along with it as fast as possible.
With best regards,
Stefan