4#define WIN32_LEAN_AND_MEAN
17int main(
int argc,
char* argv[] ) {
25 std::string raw(
"<>&'\"" );
28 std::cout <<
"Basic tests passed.\n";
34 std::cout <<
"\nEnter line of raw text to encode:\n";
35 std::getline( std::cin,
s );
36 if (
s.empty() )
break;
43 std::cout <<
"\nEnter line of xml-encoded text to decode:\n";
44 std::getline( std::cin,
s );
45 if (
s.empty() )
break;
static std::string xmlEncode(const std::string &raw)
Convert raw text to encoded xml.
static std::string xmlDecode(const std::string &encoded)
Convert encoded xml to raw text.