Fixed bug with wrong interpretation of empty element such as <TEXT></TEXT>

This commit is contained in:
Stefan Ritt 2007-05-10 08:59:44 +00:00
parent 7bce4afd0a
commit 7947f08b0e

2
mxml.c
View File

@ -1483,7 +1483,7 @@ PMXML_NODE mxml_parse_buffer(const char *buf, char *error, int error_size)
if (!*pv) if (!*pv)
return read_error(HERE, "Unexpected end of file"); return read_error(HERE, "Unexpected end of file");
if (*pv == '<') { if (*pv == '<' && *(pv+1) != '/') {
/* start new subtree */ /* start new subtree */
ptree = pnew; ptree = pnew;