05-11-2023 02:48 AM
Hi All,
Can you please give some hints or an example how to resolve my problem?
I have a XML File and I need to extract the value from the Photo.
How can I do it?
I have tried to use the XML vi's but I don't get what I want.
I don't have a code for that, but I attached something with how I started.
Thank you.
Solved! Go to Solution.
05-11-2023 04:14 AM
Hi!
A section as shown in your screenshot exists several times in your XML, so it is not completely clear which one you are looking for.
I'd, XPATH, which is a query language and allows to find nodes inside an XML tree.
In this case, //Prop[@Name='RS_payload string [Out]']/Value
searches recursively (//) for nodes <Prop>, which have an attibute Name='RS_payload string [Out]' and a child node <Value>.
A reference to the last node described by the XPATH string, i.e. <Value>, is returned.
The following code finds all such nodes, which are 1015 in your case. Maybe, you have to be more specific to finds what you are looking for.
By the way:
My labview stumbled upon the first three lines, like <LVData> never being closed. I simply deleted this tree lines.
05-11-2023 04:43 AM
Thats what I was looking for, and its ok if there are many iterations, I knew about that.
Thank you very much!