LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Escape XML.vi bug?

When I convert an empty 2D array of I32 to XML using Flatten To XML then run it through the Escape XML.vi the ouput string contains NULLs.
It seems that the tags with no actual value in between causes a NULL (\00) character to be produced between the tags. Is this right or is it a bug?
Test by sending the constant "" through the "Escape XML.vi" that comes with LabVIEW 6.1.
0 Kudos
Message 1 of 2
(2,703 Views)
Yes, this is a bug. The problem is in xml.llb\EscapeChars.vi. The problem is that when the XML In string is empty the while loop still runs once...which produces 0, the default value for a U8. This \00 is now added in between the val tags. To fix this VI just add a case to the case structure for 0 and pass the array straight through.

This bug will be fixed in the next version of LV.
Message 2 of 2
(2,703 Views)