Highlighted
Valued Contributor.
Valued Contributor.
558 views

Not able find match for lr_xml_find

Hi All,

When I tried inserting lr_xml_get_values, it is inserting the function but function is failing to capture the value.

Then I came across a solution suggested by BingleW. As per his suggestion, I modified the query and it worked for me.

In the same way, I want to pass my request on the basis of the "true" value from the following element :

     <workshopDetails i:nil="true" xmlns="URL"></workshopDetails >
  </s:body>
</s:envelope>


 When I inserted the lr_xml_find from snapshot response, it created following Query:

 Query=/Envelope[1]/Body[1]/workshopDetails[1]/@nil

I modified the query as follows:
Query=/s:Envelope[1]/s:Body[1]/*[local-name()='workshopDetails'][1]/@nil


It's not working. I think I am missing something. Please suggest.

0 Likes
2 Replies
Highlighted
Honored Contributor.
Honored Contributor.

Re: Not able find match for lr_xml_find

hi,

can you please post a more complete XML?

maybe this will work:
/s:envelope/s:body/workshopDetails[@xmlns="URL"]@i:nil

Micro Focus Performance Core.
Functional Architect
your performance, our passion!
0 Likes
Highlighted
Valued Contributor.
Valued Contributor.

Re: Not able find match for lr_xml_find

Hi Moksha,

 

Thanks for the reply, will try this and let you know.

I don't have the complete response. Following might help:

<s:envelope>

   <s:body>

       <workshopDetails i:nil="true" xmlns="URL"></workshopDetails >
  </s:body>
</s:envelope>

 

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.