Click here to Skip to main content
15,881,380 members
Articles / Programming Languages / XML

UTF-8 encoded XML file/stream processing

Rate me:
Please Sign up or sign in to vote.
3.58/5 (9 votes)
5 Jan 20072 min read 84.5K   5.9K   31  
Process an UTF-8 encoded XML file or stream; read group & attribute values; write & delete grps, attribs, values & comments.
// XM8DLL.cpp : Defines the entry point for the DLL application.
//

#include "stdafx.h"
#include "XM8DLL.h"

BOOL APIENTRY DllMain( HANDLE hModule, 
                       DWORD  ul_reason_for_call, 
                       LPVOID lpReserved
					 )
{
    switch (ul_reason_for_call)
	{
		case DLL_PROCESS_ATTACH:
		case DLL_THREAD_ATTACH:
		case DLL_THREAD_DETACH:
		case DLL_PROCESS_DETACH:
			break;
    }
    return TRUE;
}

/* This is an example of an exported variable
XM8DLL_API  int nXM8DLL=0;

// This is an example of an exported function.
XM8DLL_API int fnXM8DLL(void)
{
	return 42;
}

// This is the constructor of a class that has been exported.
// see XM8DLL.h for the class definition
CXM8DLL::CXM8DLL()
{ 
	return; 
}*/
extern "C" XM8DLL_API int DllRegisterServer(void){return true;}
extern "C" XM8DLL_API int DllUnregisterServer(void){return true;}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
United Kingdom United Kingdom
BSc (St.Andrews(1963-67))
MSCE
Systems Programmer 39+yrs
Married to first wife 35yrs & counting, four grown-up children
Religious opinions similar to MelG's
It is not the gnosis, but the praxis must be the fruit. (Aristotle)

Comments and Discussions