#include using namespace Upp; template struct MyVector : public Vector { void Foo() {} void Xmlize(XmlIO xml) { Upp::Xmlize(xml, *this); } }; void CONSOLE_APP_MAIN0() { MyVector x; x.Add(10); DDUMP(StoreAsXML(x, "test")); LOG("XXX"); } #include using namespace Upp; struct A { void Xmlize(XmlIO &xml) { xml ("v",v); } //<-- exception on 2nd call Value v; }; CONSOLE_APP_MAIN { A a; a.v = "test"; StoreAsXMLFile(a, "XmlizeTest", "xmlizeTtest"); a.v = 0; LoadFromXMLFile(a, "xmlizeTtest"); }