5#define WIN32_LEAN_AND_MEAN
19int main(
int argc,
char* argv[])
28 std::string raw(
"<>&'\"");
31 std::cout <<
"Basic tests passed.\n";
36 std::cout <<
"\nEnter line of raw text to encode:\n";
37 std::getline(std::cin,
s);
44 std::cout <<
"\nEnter line of xml-encoded text to decode:\n";
45 std::getline(std::cin,
s);
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.