Highlighted
vineet_Subudhi Valued Contributor.
Valued Contributor.
675 views

How do i get corresponding values from XML response

Jump to solution

HI All,

I am using LR 11.04, my script contains soap requests, I need to build a custom request based on few values from response i get from sever.

My XML retures some 1000 data rows in that there are sub-rows like ID, Date, Value1, Type.

I have to use ID, Type, Date in my new custom request only if value1 is "C" (for example), but all rows will not have date fields in those 1000 rows.

So how can i get Date value corresponding to its ID. 

Thanks for help in advance.

 

 

 

Tags (3)
0 Likes
1 Solution

Accepted Solutions
vineet_Subudhi Valued Contributor.
Valued Contributor.

Re: How do i get corresponding values from XML response

Jump to solution

Got the answer.

Used lr_xml_get_values as shown below:

lr_xml_get_values("XML={XML_Input_Param}","ValueParam=Result","Query=/acme_org/*/employee[extension=\"2970\"]/name",LAST );

0 Likes
1 Reply
vineet_Subudhi Valued Contributor.
Valued Contributor.

Re: How do i get corresponding values from XML response

Jump to solution

Got the answer.

Used lr_xml_get_values as shown below:

lr_xml_get_values("XML={XML_Input_Param}","ValueParam=Result","Query=/acme_org/*/employee[extension=\"2970\"]/name",LAST );

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.