LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Append data to XML File

Hi,

     I would like to generate the test report in XML file, since I am new to XML File handling I used "Write Test Data File" LabVIEW example. First time I was able to create the XML file and add test data. But when I tried to append the data from the next run I am getting an error -2648 - "Error -2648 occurred at Invoke Node in Write Data to XML.vi - Possible reason(s):LabVIEW:  Attempted to call Append Child with invalid refnum parameter New Child."

Whether somebody can help me on this.

 

Thanks in advance.

 

Regards,

Visuman

0 Kudos
Message 1 of 2
(2,772 Views)

You haven't shown us any code, so we can't tell you what the exact problem is. However, in general, you cannot directly "append" to an XML file like you can append to a text file right to the end of the existing file. An XML file has a specific structure. Thus, you have to insert nodes in the tree to obey the schema for the XML file.

0 Kudos
Message 2 of 2
(2,761 Views)