LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Txt Array to XML

Solved!
Go to solution

I have a 2D array string which I want to put in xml with the first row (the headers) as the tags when its in xml. At the moment when I flatten the array it treats them as just any other row and uses labviews own tags. How can I seperate the first row and make it the tags

0 Kudos
Message 1 of 4
(2,797 Views)
Solution
Accepted by TiLO

It sounds like you're trying to make your own custom XML schema. If you use the Flatten to XML functions, the LabVIEW XML schema is used. This is documented in the LabVIEW Help. If  you have LabVIEW 8.6 or later then you can use the XML Parser VIs and functions to create your own XML file. If you have an earlier version that you can use something like LabXML to create your XML file.

0 Kudos
Message 2 of 4
(2,791 Views)

Ye I've been looking and that seems to be what I need. I just don't really understand all of the definitions. ie. first matched node or child etc. Sorry extremely new to programming, let alone labview

0 Kudos
Message 3 of 4
(2,786 Views)

"first matched node" and "child" refer to XML elements. You may wish to go through a basic XML tutorial, such as the one at w3schools.com.

 

And, if you haven't gone through the LabVIEW tutorial, you should also go through those. You can also look over the material in the NI Developer Zone's Learning Center which provides links to other materials and other tutorials. You can also take the online courses for free.

0 Kudos
Message 4 of 4
(2,771 Views)