10-28-2008 09:13 PM
Hi,
I want to use xml parser generate xml file in LV 8.6 version. A problem have feazed me for several hours.
And now I can generate it by learning the LV example "Write Test Data To File.vi" like this,
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<TestData>
<MeanTemp>81.933594</MeanTemp>
</TestData>
But I want to generate xml file like this,
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<station 1>
<TestData>
<MeanTemp>81.933594</MeanTemp>
</TestData>
<station 1>
And this is my VI I have completed.
regards,
水彖
10-28-2008 09:45 PM
Hi-
As far as I can tell, the XML tools provided by LabVIEW are only intended for recording data values in a format that allows them to be exchanged with other applications, or saved to disk and read back into LabVIEW at a later time.
I recently encountered the need to write and parse arbitrary format XML. I spent a lot of time searching in this forum, and concluded that no general purpose tool exists within LabVIEW. You need to purchase a 3rd party tool. A link to such a tool can be found in this thread. I did not make this purchase, so I can't offer any useful opinion about it.
-GN
10-29-2008 12:33 AM
Hi Gnunesjr,
Thanks for your comment.
In LV 8.6 version,I have worked out how to parse arbitrary format XML. It is the new function of LV 8.6 version called XML parser.
Regards,
水彖