|
|
@ -1,7 +1,7 @@ |
|
|
|
/*
|
|
|
|
/*
|
|
|
|
* File loading code for Mini-XML, a small XML file parsing library. |
|
|
|
* File loading code for Mini-XML, a small XML file parsing library. |
|
|
|
* |
|
|
|
* |
|
|
|
* Copyright 2003-2017 by Michael R Sweet. |
|
|
|
* Copyright 2003-2018 by Michael R Sweet. |
|
|
|
* |
|
|
|
* |
|
|
|
* These coded instructions, statements, and computer programs are the |
|
|
|
* These coded instructions, statements, and computer programs are the |
|
|
|
* property of Michael R Sweet and are protected by Federal copyright |
|
|
|
* property of Michael R Sweet and are protected by Federal copyright |
|
|
@ -2974,7 +2974,7 @@ mxml_write_node(mxml_node_t *node, /* I - Node to write */ |
|
|
|
{ |
|
|
|
{ |
|
|
|
while ((next = current->next) == NULL) |
|
|
|
while ((next = current->next) == NULL) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (current == node) |
|
|
|
if (current == node || !current->parent) |
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|