Simple examples such as
Char *xml_input = "<?xml version=\" 1.0\ "encoding=\" utf-8\ "?>" "<s:envelope xmlns:s=\"/http/ Schemas.xmlsoap.org/soap/envelope/\ ">" "<S:Body>" "<ns2:handleresponse xmlns:ns2=\"/http/ Eaop.gd.chinamobile.com/\ ">" "<return>" "<queryecouponsbymobilenumresp>" <msgheade R> "" <req_seq>20161206165439111</req_seq> "" <ope_seq>20161220161336177143</o Pe_seq> "<retinfo>" "<rettype>0</rettype>" "<retcode>0< ;/retcode> "<retmsg>success</retmsg>" "</retinfo>" "</msgheader& gt; "" <msgbody> "</msgbody>" </queryecouponsbymobilenumresp> "</return>" "</ns2:ha Ndleresponse> "</S:Body>" "</S:Envelope>"; Action () {lr_save_string (Xml_input, "Xml_input_param");//Save input as parameter//lr_xml_get_values:retrieves valuesof XML elements found by a query. Lr_xml_get_values ("Xml={xml_input_param}", "Valueparam=outputparam", "query=/envelope/body/handlerespons E/return/queryecouponsbymobilenumresp/msgheader/retinfo/retcode ", last); Lr_output_message (lr_eval_string ("Query result = {Outputparam}"); return 0;}
Input results such as
The Lr_xml_get_values of LoadRunner function