RootElement userinfo.h const AssertXercesIsAlive const AssertXercesIsAlive RootElement::dummy dummy This private attribute has to be declared as the first attribute in the class. Only this way we can be sure it's constructor is called as the first and thus Xerces is initialized properly and right on time DOMDocument * DOMDocument* RootElement::pDoc pDoc DOMDocument containing the root element this instance is associated to. const XMLCh *const const XMLCh* const RootElement::transcodedFileName transcodedFileName DOMImplementation * DOMImplementation* RootElement::pImplementation pImplementation DOMImplementation is a base class for the all DOM oparations. DOMWriter * DOMWriter* RootElement::pSerializer pSerializer This DOMWriter is used to export internal data into xml file. void void RootElement::Clean () Clean RootElement::RootElement (char *fileName) RootElement char * fileName attach new RootElement instance to a file (typically with an XML extension) RootElement::~RootElement () ~RootElement bool bool RootElement::Load (void) Load void this method loads root element and all its subnodes from the attached file loads root element from a file This DOMWriter is used to import external data from xml files void void RootElement::Save (void) Save void this method saves all the previsoulsy attached DOMElements into the file Save UserInfo to the file (typically with an XML extension). RootElement::operator DOMElement & () operator DOMElement & this operator allows to use a RootElement instance whenever a DOMElement variable is accepted This class serves to load and/or save DOMElements into/from files stored on a hard-disk. Firstly, you associate new RootElement instance with some filename during a time of its construtcion. Then, you disassembly some object into the new RootElement instance, and save it into the file this way: CAudiaudi; RootElementroot("cars.xml"); UserInfo::Disassembly(audi,root,"TT"); root.Save(); In the other way round, when loading object from a XML file, the appropriate code looks like this: RootElementroot("cars.xml"); root.Load(); UserInfo::Assembly<T>(root,"TT"); dummy RootElementClean RootElementdummy RootElementLoad RootElementoperator DOMElement & RootElementpDoc RootElementpImplementation RootElementpSerializer RootElementRootElement RootElementSave RootElementtranscodedFileName RootElement~RootElement