5 #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers 19 int 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);
int main(int argc, char *argv[])
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.