* Add a flag to tell ParseNameValue() to store empty XML elements.

This commit is contained in:
Justin Maggard
2012-07-10 21:12:10 +00:00
parent 074055aa4d
commit f0c7768533
8 changed files with 24 additions and 16 deletions

View File

@ -31,6 +31,7 @@
*/
#ifndef __MINIXML_H__
#define __MINIXML_H__
#include <stdint.h>
#define IS_WHITE_SPACE(c) ((c==' ') || (c=='\t') || (c=='\r') || (c=='\n'))
/* if a callback function pointer is set to NULL,
@ -40,6 +41,7 @@ struct xmlparser {
const char *xmlend;
const char *xml; /* pointer to current character */
int xmlsize;
uint32_t flags;
void * data;
void (*starteltfunc) (void *, const char *, int);
void (*endeltfunc) (void *, const char *, int);