template <class T> void XmlizeByJsonize(XmlIO& xio, T& x) { if(xio.IsStoring()) StoreJsonValue(xio, StoreAsJsonValue(x)); else { try { LoadFromJsonValue(x, LoadJsonValue(xio.Node())); } catch(JsonizeError e) { throw XmlError("xmlize by jsonize error: " + e); } } }
Report message to a moderator