I have this statement inside a function, that opens a XML file. Code: static auto_ptr remoteXML (Remote_("../config/remote_conf.xml")); The XML file is opened every-time I call the function or is opened only in the first call??