06-18-2013 06:15 AM
Hi, I need to read data from an XML file, but since I'm fairly new to Labview and XML, I could really use some help.
Below is the content of the XML (part of it)
I need to read the serial number and weight from resource "ID1" and "ID8".
<resource name="printer">
<resource name="ID1">
<resource name="ID8">
06-18-2013 07:30 AM
06-18-2013 08:26 AM
06-21-2013 08:49 AM
Hi, thanks for the replies.
I started out with putting all data in an array, but it is simply to complex.
I had a look at EasyXML and it looks very promessing, but I can someone please help me with creating a cluster for the above mentioned XML?
Thanks,
06-21-2013 01:29 PM
07-26-2013 06:11 PM
Thank you Ben, it was very helpful.
How'd you use the Easy XML to convert from XML to cluster or array of clusters for the same example?
07-27-2013 01:50 AM
Hi,
Refer to example:
"<LabVIEW>\examples\JKI\EasyXML" .
Also you can get complete documetation for the same here
if you need to create parse data from XML you'll need to create the custer control (or constant as i do in the example in link given below) then parse the data from the XML to the output cluster.
I have created the code for your XML data here in dropbox (unable to attach VI on this forum due to error)
07-27-2013 08:48 AM
When you paste the XML code it into the string control, the resulting cluster is not populated correctly.
Also, would the behavior be the same if I create an array of clusters for counter?
06-06-2018 07:46 PM
It helped a lot, getting all the attributes from a file
Thanks
02-01-2019 09:31 AM
Could you please explain why you gave //*@ as the string constant to get all matched nodes
thanks in advance
Anil