[xsd-users] reading from string streams

Omkar Wagh owagh at tower-research.com
Tue May 6 09:37:07 EDT 2014


You are right... 

openssl does not null terminate strings while decrypting

Thanks
________________________________________
From: Boris Kolpackov [boris at codesynthesis.com]
Sent: Monday, May 05, 2014 8:11 PM
To: Omkar Wagh
Cc: xsd-users at codesynthesis.com
Subject: Re: [xsd-users] reading from string streams

Hi Omkar,

Omkar Wagh <owagh at tower-research.com> writes:

> :444:1 error: Expected comment or processing instruction
>
> std::string file_str(reinterpret_cast<char*> (plaintext));
> std::istringstream ptext_stream(file_str);

This normally has something to do with encoding or stray characters
in the XML string. What encoding is your XML in? Can you also print
the string you have created and see what's at line 444?

cerr << endl
     << "'" << file_str << "'"
     << endl;

Boris



More information about the xsd-users mailing list