
Reading Configuration Information from an XML File
This tip helps to read configuration information in an XML file. Using XPath, the values can be read simply and the value is fetched from the file as CString. /*********** The header file ******************************/class CXMLConfig {private: IXMLDOMDocument* m_pXMLDocument; CString m_strFileName;public: CXMLConfig(void); ~CXMLConfig(void); CXMLConfig(CString strConfigFileName); HRESULT LoadXMLDocument(); CString GetValue(CString strXPath); void