02-01-2019 01:08 PM
Hi Anil,
Using //*@ gave me all the nodes/attributes from the XML.
So I wasn't looking for matching.
I then parsed out the text to get my data.
Thanks
Akbar
02-03-2019 11:09 PM
@anilkumarmuppirala18 wrote:
Could you please explain why you gave //*@ as the string constant to get all matched nodes
thanks in advance
Anil
I'm no expert, but I think that's just standard XPATH stuff. https://www.w3schools.com/xml/xpath_intro.asp.
02-04-2019 02:35 AM
Thanks akbar ,
but is there a way to get specific attributes because i tried using element name and its not working its not even giving me error
02-04-2019 03:52 PM
Hi Anil,
I understand your frustration with XML. I feel this is very peculiar with LabVIEW. If you have a XML file (not created by LabVIEW) then you always have issues getting a particular attribute. It works sometime seamlessly and sometimes it doesn't. As you mentioned it won't give you any errors as well.
So the best way to do this, is to read the entire XML file as a string and parse it using string functions to get the attribute value you want.
Hope this helps.
thanks,
Akbar
02-05-2019 01:42 AM
Thanks akbar ,
Yesterday i struggled for 3 hours before finnaly finding a solution i was not using the right syntax . i looked up how xpath works and found this syntax its working for me now.syntax :- location to node containing attribute followed by @* Eg:-/rapishape/packagetypes/package/@*
hope this helps who ever is looking for this in future
04-09-2019 06:38 AM
may i know what is the name of the last block used out of 3 blocks used
04-09-2019 07:08 AM
@KEERTHBIO wrote:
may i know what is the name of the last block used out of 3 blocks used
If you refer to my post using JKI Easy XML the name of the function is Variant To Data from Cluster, Class & Variant -> Variant palette.
Ben64
04-09-2019 07:12 AM
Which message are you replying to? (It helps to use the "Quote" button when your message could be ambiguous.)
I'm going to guess Ben64's message #5 since it has 3 functions in it. That is a Variant to Data function.