Propagate element errors (STR #46)

pull/193/head
Michael R Sweet 17 years ago
parent 7f26d51318
commit 207782c809
  1. 2
      CHANGES
  2. 5
      mxml-file.c

@ -3,6 +3,8 @@ CHANGES - 2007-09-09
CHANGES IN Mini-XML 2.3.1
- mxmlLoad*() did not return NULL when an element contained
an error (STR #46)
- Added support for the apos character entity (STR #54)
- Fixed whitespace detection with Unicode characters (STR
#48)

@ -1986,7 +1986,10 @@ mxml_load_data(
}
if (mxml_isspace(ch))
ch = mxml_parse_element(node, p, &encoding, getc_cb);
{
if ((ch = mxml_parse_element(node, p, &encoding, getc_cb)) == EOF)
goto error;
}
else if (ch == '/')
{
if ((ch = (*getc_cb)(p, &encoding)) != '>')

Loading…
Cancel
Save