Mini-XML 2.10 Jun 13, 2016

Mini-XML 2.10 is now available for download from:

   http://www.msweet.org/downloads.php/Mini-XML

Mini-XML 2.10 fixes some stack overflow, XML, and API issues. Changes include:

  • The version number in mxml.h was wrong (Bug #532)
  • The mxml.spec file was out of date (Bug #521)
  • Mini-XML no longer allows malformed element names (Bug #509)
  • mxmlLoad* and mxmlSAXLoad* did not properly create text nodes when MXML_TEXT_CALLBACK was specified (Bug #531)
  • mxmlDelete used a recursive algorithm which could require large amounts of stack space depending on the file (Bug #549, CVE-2016-4570)
  • mxmlWrite* used a recursive algorithm which could require large amounts of stack space depending on the file (Bug #549, CVE-2016-4571)

Enjoy!

12 comments

felix.wu Aug 24, 2016

I found that, if my XML file doesn't have the first line "<?xml ...?>", then I cannot find any element. mxmlFindElement will return NULL.

my code is:
        fp = fopen("sim_cfg.xml", "r");
        tree = mxmlLoadFile(NULL, fp, MXML_TEXT_CALLBACK);
        pnode = mxmlFindElement(tree, tree, "sim", NULL, NULL, MXML_DESCEND);
sim_cfg.xml is:
<sim>
        <timeout>30</timeout>
</sim>

smstong Sep 5, 2016

Some suggestions:
a) mxmlGetFirstChildElement() should be added to get the first Element node.
b) mxmlGetRootElement() should be added to get the Root Element of the XML file.
c) mxmlElementFristAttr() should be added to get all the 1st attribute of an element.
d) the result format of mxmlSaveFile() is not pretty, standard XML-fromat may be better.

davicezhu Nov 8, 2016

mxmlDelete function has some memory leak.
    if ((next = current->next) == NULL)
    {
      mxml_node_t *temp = current->parent;
                                        /* Pointer to parent node */

      if (temp == node)
      {
       /*
        * Got back to the top node...
        */

        next = NULL;
      }
      else
          {
                  next = temp;
          }
    }

Fernando Gámbaro Nov 22, 2016

I would like to tell me how I can integrate an xml with php

geng xin li Nov 25, 2016

Hi,Comment nodes are currently
stored in memory as special
elements. This will be changed in a
future major release of Mini-XML.

"future major release of Mini-XML" is Mini-XML 2.10?

MarkJ70 Jan 10, 2017

good could be downloaded by following this process and information https://imobdro.com mount Bluestack emulator software on your PC nice.

Sai Siri Jan 14, 2017

download paid apps for free on <a href="http://vsharedownloads.org/">http://vsharedownloads.org</a> without jailbreaking your iPhone, iPad.

keralaresults Jan 15, 2017

http://keralaresultsnic-in.in/

Randall658 Jan 24, 2017

good streamings from numerous cost free resources. Undoubtedly, https://mobdroapp.meta.watch/is-mobdro-safe-legal/ download your video documents on your android device totally free nice.

Roxy Chan Jan 31, 2017

https://mobdroforpcappdownload.com/install-mobdro-on-fire-stick-tv-es-file-explorer-without-pc/

itunessignin 8 Days Ago

recover iTunes account http://helpituneslogin.com/recover-disabled-itunes-account/

itunessignin 6 Days Ago

http://helppinterestlogin.com/ If you already have a pinterest account and would like to know how to do pinterest login or Sign in to pinterest then follow the following steps.