LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

use xml parser generate xml file

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,

 

水彖

0 Kudos
Message 1 of 3
(2,996 Views)

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 

0 Kudos
Message 2 of 3
(2,993 Views)

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,

水彖

0 Kudos
Message 3 of 3
(2,986 Views)