Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Ethereal-dev: [Ethereal-dev] DIAMETER and xml problems

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Anders Broman (AL/EAB)" <anders.broman@xxxxxxxxxxxx>
Date: Wed, 31 Mar 2004 13:45:06 +0200
Hi,
With the latest Libxml files for Win32 from http://www.zlatkovic.com/libxml.en.html 
the following out put from console is recived:

Unable to find "xmlDoValidityCheckingDefaultValue"
Diameter: Using static dictionary! (Unable to use XML)

Search on Google finds the following :
http://mail.gnome.org/archives/xml/2003-May/msg00090.html

--- snip ---
This means you are using older headers to compile your code or that you did not include the headers defining xmlDoValidityCheckingDefaultValue see include/libxml/globals.h : 
extern int *__xmlDoValidityCheckingDefaultValue(void); 
#ifdef LIBXML_THREAD_ENABLED 
#define xmlDoValidityCheckingDefaultValue \
 (*(__xmlDoValidityCheckingDefaultValue())) 
#else LIBXML_DLL_IMPORT extern int xmlDoValidityCheckingDefaultValue; 
#endif
 Fix your environment or your code to have to proper definition of the global variables. 
--- snip ---

In xmlstub.h it is defined as
typedef struct {
	/* Functions */
	xmlDocPtr         (*xmlParseFile)(const char *filename);
	int              (*xmlStrcmp)(const xmlChar *str1, const xmlChar *str2);
	xmlParserCtxtPtr  (*xmlCreatePushParserCtxt)(xmlSAXHandlerPtr, void *, const char *,
												 int, const char *);
	int              (*xmlParseChunk)(xmlParserCtxtPtr, const char *, int, int);
	void             (*xmlFreeParserCtxt)(xmlParserCtxtPtr);
	xmlNodePtr         (*xmlDocGetRootElement)(xmlDocPtr);
	void             (*xmlFreeDoc)(xmlDocPtr);
	char            *(*xmlNodeListGetString)(xmlDocPtr, xmlNodePtr, int);
	char            *(*xmlGetProp)(xmlNodePtr, char *);
	int              (*xmlKeepBlanksDefault)(int);
	int              (*xmlSubstituteEntitiesDefault)(int);

	/* Variables */
	int              *xmlDoValidityCheckingDefaultValue;

} XML_STUB;

Does any one know how to make this work ?

Best regards
Anders