#include #include using namespace std; struct Base { int a; int b; string c; XPACK(X(F(ATTR), a, b), X(F(XML_CONTENT), c)); }; struct Root { Base root; XPACK(O(root)); }; int main() { Root r; r.root.a = 1; r.root.b = 2; r.root.c = "hello"; string s = xpack::xml::encode(r, "root", 0, 4, ' '); cout<