From 7947f08b0e604c2204b94eb69302eabc383a092e Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Thu, 10 May 2007 08:59:44 +0000 Subject: [PATCH] Fixed bug with wrong interpretation of empty element such as --- mxml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mxml.c b/mxml.c index 9c85a55..0fc1bdd 100755 --- a/mxml.c +++ b/mxml.c @@ -1483,7 +1483,7 @@ PMXML_NODE mxml_parse_buffer(const char *buf, char *error, int error_size) if (!*pv) return read_error(HERE, "Unexpected end of file"); - if (*pv == '<') { + if (*pv == '<' && *(pv+1) != '/') { /* start new subtree */ ptree = pnew;