snes9x/win32/CXML.h
2012-11-04 13:47:41 +01:00

29 lines
523 B
C++

#ifndef CXML_H
#define CXML_H
#include "msxml2.h"
#include <tchar.h>
class CXML
{
private:
IXMLDOMDocument * pXMLDoc;
IXMLDOMElement * pXrootElement;
bool xmlLoaded;
TCHAR *nodeContent;
TCHAR *attrValue;
IXMLDOMNode *getNode(TCHAR const *searchNode);
public:
CXML(void);
~CXML(void);
bool loadXmlFile(TCHAR const *xmlFile);
void unloadXml();
TCHAR *getAttribute(TCHAR const *searchNode, TCHAR const *attrName);
TCHAR *getNodeContent(TCHAR const *searchNode);
};
#endif