08-15-2008 07:35 AM
Hello Dos,
An example of using the XML library named XMLSample can be found at "Users\Public\Documents\National Instruments\CVI85\samples\toolbox" on Vista, or at "Documents and Settings\All Users\Documents\National Instruments\CVI85\samples\toolbox" on XP. For an example of using CVIXMLNewElement, refer to the two callback functions ChildInsertBefore and ChildInsertAfter.
To answer your question on how to get started writing XML files, if you are beginning by creating an empty XML document, you will first call CVIXMLNewDocument, where you will specify the root element. You can then call CVIXMLGetRootElement, which will return a handle to the root element you created with CVIXMLNewDocument, which can then be used as the parent element for CVIXMLNewElement.
NickB
National Instruments
08-15-2008 10:53 AM
Hi Dominik,
I'm glad you have things working. Nick has already suggested the same example program that I would have suggested. Hopefully that will make things clear. If it still doesn't make sense, let us know.
Regarding CVIXMLCopyElement, I now do see the problem in the help. Earlier, I had mainly been looking at the function panel help, which was correct. And even though I also looked at the external help topic, I only glanced at the list of parameters in the body of the help, which were correct, but I didn't notice that the prototype at the top was incorrect. We'll take care of it. Thanks for letting us know.
Luis