LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Parse XML file

I have used this method of parsing XML more than once but for some reason this file just will not parse.

 

What am I missing here?

 

You will have to change the extention of Thermal Probes.TXT to Thermal Probes.xml since xml file attachments are not allowed...

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 1 of 3
(2,223 Views)

Why not just use "<Probe>" instead of "<Probe1>", "<Probe2>", etc? Then you can get the list of elements with the tag "Probe", simplifying your code. Just a thought.

Message 2 of 3
(2,217 Views)

Hi RTSLVU,

 

I agree with smercurio_fc's suggestion to use <Probe> instead of <Probe1>, <Probe2>, etc. This simplifies the code considerably. Please see the attached VI and modified XML file. When I ran this code on my machine it worked as desired. Hope that helps!

 

[The attached Code is provided As Is. It has not been tested or validated as a product, for use in a deployed application or system, or for use in hazardous environments. You assume all risks for use of the Code and use of the Code is subject to the Sample Code License Terms which can be found at: http://ni.com/samplecodelicense]


Regards,

Nathan S.
Applications Engineer
National Instruments
Download All
0 Kudos
Message 3 of 3
(2,189 Views)