globals

Name

globals -- 

Synopsis



struct      xmlGlobalState;
typedef     xmlGlobalStatePtr;
void        xmlInitializeGlobalState        (xmlGlobalStatePtr gs);
#define     xmlMalloc                       (size)
#define     xmlRealloc                      (ptr, size)
#define     xmlFree
#define     xmlMemStrdup                    (str)
#define     docbDefaultSAXHandler
#define     htmlDefaultSAXHandler
#define     oldXMLWDcompatibility
#define     xmlBufferAllocScheme
#define     xmlDefaultBufferSize
#define     xmlDefaultSAXHandler
#define     xmlDefaultSAXLocator
#define     xmlDoValidityCheckingDefaultValue
#define     xmlGenericError
#define     xmlGenericErrorContext
#define     xmlGetWarningsDefaultValue
#define     xmlIndentTreeOutput
#define     xmlKeepBlanksDefaultValue
#define     xmlLineNumbersDefaultValue
#define     xmlLoadExtDtdDefaultValue
#define     xmlParserDebugEntities
#define     xmlParserVersion
#define     xmlPedanticParserDefaultValue
#define     xmlSaveNoEmptyTags
#define     xmlSubstituteEntitiesDefaultValue

Description

Details

>struct xmlGlobalState

struct xmlGlobalState 
{
	const char *xmlParserVersion;

	xmlSAXLocator xmlDefaultSAXLocator;
	xmlSAXHandler xmlDefaultSAXHandler;
	xmlSAXHandler docbDefaultSAXHandler;
	xmlSAXHandler htmlDefaultSAXHandler;

	xmlFreeFunc xmlFree;
	xmlMallocFunc xmlMalloc;
	xmlStrdupFunc xmlMemStrdup;
	xmlReallocFunc xmlRealloc;

	xmlGenericErrorFunc xmlGenericError;
	void *xmlGenericErrorContext;

	int oldXMLWDcompatibility;

	xmlBufferAllocationScheme xmlBufferAllocScheme;
	int xmlDefaultBufferSize;

	int xmlSubstituteEntitiesDefaultValue;
	int xmlDoValidityCheckingDefaultValue;
	int xmlGetWarningsDefaultValue;
	int xmlKeepBlanksDefaultValue;
	int xmlLineNumbersDefaultValue;
	int xmlLoadExtDtdDefaultValue;
	int xmlParserDebugEntities;
	int xmlPedanticParserDefaultValue;

	int xmlSaveNoEmptyTags;
	int xmlIndentTreeOutput;
};


>xmlGlobalStatePtr

typedef xmlGlobalState *xmlGlobalStatePtr;


>xmlInitializeGlobalState ()

void        xmlInitializeGlobalState        (xmlGlobalStatePtr gs);

xmlInitializeGlobalState() initialize a global state with all the default values of the library.

gs : a pointer to a newly allocated global state


>xmlMalloc()

#define     xmlMalloc(size)

Wrapper for the malloc() function used in the XML library

size : 


>xmlRealloc()

#define     xmlRealloc(ptr, size)

Wrapper for the realloc() function used in the XML library

ptr : 
size : 


>xmlFree

#define     xmlFree


>xmlMemStrdup()

#define     xmlMemStrdup(str)

Wrapper for the strdup() function, xmlStrdup() is usually preferred

str : 


>docbDefaultSAXHandler

#define     docbDefaultSAXHandler


>htmlDefaultSAXHandler

#define     htmlDefaultSAXHandler


>oldXMLWDcompatibility

#define     oldXMLWDcompatibility


>xmlBufferAllocScheme

#define     xmlBufferAllocScheme


>xmlDefaultBufferSize

#define     xmlDefaultBufferSize


>xmlDefaultSAXHandler

#define     xmlDefaultSAXHandler


>xmlDefaultSAXLocator

#define     xmlDefaultSAXLocator


>xmlDoValidityCheckingDefaultValue

#define     xmlDoValidityCheckingDefaultValue


>xmlGenericError

#define     xmlGenericError


>xmlGenericErrorContext

#define     xmlGenericErrorContext


>xmlGetWarningsDefaultValue

#define     xmlGetWarningsDefaultValue


>xmlIndentTreeOutput

#define     xmlIndentTreeOutput


>xmlKeepBlanksDefaultValue

#define     xmlKeepBlanksDefaultValue


>xmlLineNumbersDefaultValue

#define     xmlLineNumbersDefaultValue


>xmlLoadExtDtdDefaultValue

#define     xmlLoadExtDtdDefaultValue


>xmlParserDebugEntities

#define     xmlParserDebugEntities


>xmlParserVersion

#define     xmlParserVersion


>xmlPedanticParserDefaultValue

#define     xmlPedanticParserDefaultValue


>xmlSaveNoEmptyTags

#define     xmlSaveNoEmptyTags


>xmlSubstituteEntitiesDefaultValue

#define     xmlSubstituteEntitiesDefaultValue

global variable controlling the entity substitution default behavior