* 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

@ -71,7 +71,7 @@ NameValueParserGetData(void * d, const char * datas, int l)
void
ParseNameValue(const char * buffer, int bufsize,
struct NameValueParserData * data)
struct NameValueParserData * data, uint32_t flags)
{
struct xmlparser parser;
LIST_INIT(&(data->head));
@ -83,6 +83,7 @@ ParseNameValue(const char * buffer, int bufsize,
parser.endeltfunc = 0;
parser.datafunc = NameValueParserGetData;
parser.attfunc = 0;
parser.flags = flags;
parsexml(&parser);
}