|
|
|
@ -1650,6 +1650,17 @@ mxml_load_data( |
|
|
|
|
|
|
|
|
|
*bufptr = '\0'; |
|
|
|
|
|
|
|
|
|
if (!parent && first) |
|
|
|
|
{ |
|
|
|
|
/*
|
|
|
|
|
* There can only be one root element! |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
mxml_error("<%s> cannot be a second root node after <%s>",
|
|
|
|
|
buffer, first->value.element.name); |
|
|
|
|
goto error;
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if ((node = mxmlNewElement(parent, buffer)) == NULL) |
|
|
|
|
{ |
|
|
|
|
/*
|
|
|
|
@ -1707,6 +1718,17 @@ mxml_load_data( |
|
|
|
|
|
|
|
|
|
*bufptr = '\0'; |
|
|
|
|
|
|
|
|
|
if (!parent && first) |
|
|
|
|
{ |
|
|
|
|
/*
|
|
|
|
|
* There can only be one root element! |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
mxml_error("<%s> cannot be a second root node after <%s>",
|
|
|
|
|
buffer, first->value.element.name); |
|
|
|
|
goto error;
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if ((node = mxmlNewElement(parent, buffer)) == NULL) |
|
|
|
|
{ |
|
|
|
|
/*
|
|
|
|
@ -1763,6 +1785,17 @@ mxml_load_data( |
|
|
|
|
|
|
|
|
|
*bufptr = '\0'; |
|
|
|
|
|
|
|
|
|
if (!parent && first) |
|
|
|
|
{ |
|
|
|
|
/*
|
|
|
|
|
* There can only be one root element! |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
mxml_error("<%s> cannot be a second root node after <%s>",
|
|
|
|
|
buffer, first->value.element.name); |
|
|
|
|
goto error;
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if ((node = mxmlNewElement(parent, buffer)) == NULL) |
|
|
|
|
{ |
|
|
|
|
/*
|
|
|
|
@ -1838,6 +1871,17 @@ mxml_load_data( |
|
|
|
|
|
|
|
|
|
*bufptr = '\0'; |
|
|
|
|
|
|
|
|
|
if (!parent && first) |
|
|
|
|
{ |
|
|
|
|
/*
|
|
|
|
|
* There can only be one root element! |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
mxml_error("<%s> cannot be a second root node after <%s>",
|
|
|
|
|
buffer, first->value.element.name); |
|
|
|
|
goto error;
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if ((node = mxmlNewElement(parent, buffer)) == NULL) |
|
|
|
|
{ |
|
|
|
|
/*
|
|
|
|
@ -1918,6 +1962,17 @@ mxml_load_data( |
|
|
|
|
* Handle open tag... |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
if (!parent && first) |
|
|
|
|
{ |
|
|
|
|
/*
|
|
|
|
|
* There can only be one root element! |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
mxml_error("<%s> cannot be a second root node after <%s>",
|
|
|
|
|
buffer, first->value.element.name); |
|
|
|
|
goto error;
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if ((node = mxmlNewElement(parent, buffer)) == NULL) |
|
|
|
|
{ |
|
|
|
|
/*
|
|
|
|
|