LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to read XML by item name

We have a XML config file as attachement.
It has many jobs' configuration in it(<Job>).
For every job, therer will be a item of <JobActive> with value of Y or N.
Sometimes, we need to toggle the Y or N for some certain jobs.
 
I tried to read the <JobName> by the attached vi.
But when I read it, I can only read the items by sequence one by one.
Is it possible to read by the item name or by index?
We will have many <job> in the future.
 
Thanks,
0 Kudos
Message 1 of 3
(2,929 Views)
Hi,

I tried opening up your VI to take a closer look, but unfortunately there are broken wires corresponding to your application.  Unfortunately I am not able to test your VI here.  Can you please explain your application further so that we can be able to help you out.


Regards,

Nadim R
Applications Engineering
National Instruments
0 Kudos
Message 2 of 3
(2,899 Views)
Can you attach a sample of the XML file so when I run the example I get something that works.  I may understand the question, because looking at the VI I don't see where you are searching for a specific job.  You just work with the first one returned?
 
 
0 Kudos
Message 3 of 3
(2,886 Views)