snes9x/win32/CXML.h

29 lines
523 B
C
Raw Permalink Normal View History

2012-10-18 15:44:42 +02:00
#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