Hi Dominik, I'm attaching your code after I made a few corrections. I've explained each modification with a comment that starts with "MOD:". Let me know if any of them is unclear. Essentially, the problem you were having is that you were freeing some of the elements more than once, and others (mainly the lists, but also an element or two) were not being freed at all. The comments should explain it. I checked the help for CVIXMLCopyElement, both in the function panel, and in the external help, and I didn't find a problem with the number of parameters. The function expects five parameters: CVIXMLCopyElement (CVIXMLElement srcElem, int copyChildElements, CVIXMLElement destParent, int index, CVIXMLElement *destElem); What do you see in the help? As far as the beta is concerned, yes it does follow (roughly) an annual cycle, but currently there is an active beta program, so at this time of the year you should receive a reply within a day or two (note the beta announcement that was posted here in the forum just last week). To answer your last question, if you use the beta, you can get a report of which elements were not cleanly removed. An example for how to deallocate the list that you get from CVIXMLFindElements can be found in the function help itself. Look at the help for the last parameter.
Luis Message Edited by LuisG on 08-13-2008 02:33 PM
xmltest.c:
http://forums.ni.com/ni/attachments/ni/180/37251/1/xmltest.c