HI Eric, Thanks for the reply. Please find the following details.
I have saved my working response in captures folder and replying this dummy response to client using oSession["x-replywithfile"]="xxxx.xml". this is working fine as expected, now my query is
when I am sending a new request to the fiddler again i have read the new request xml file sent from the client and fetched some string value from the new request xml and stored in a string variable and now I want to replace this string value with value in dummy repsponse stored in captures folder and resend this new dummy to the client again using oSession["x-replywithfile"]="xxxx.xml".
In my capture folder xml i have following tag as
<OnlineServicesActivateResponse MajorVersion="1" MinorVersion="0" FixVersion="0" xmlns="sdfadsa">
<Header>
<Response ResponseCode="OK">
<RequestID>feb2bcf5-d022-4b16-a18b-660b06b94569</RequestID>
<ResponseTimestamp>2018-05-23T21:46:14</ResponseTimestamp>
</Response>
</Header>
<AuthorizationResponse>
<ResultCode>Success</ResultCode>
<AuthorizationCode>00</AuthorizationCode>
<AuthorizationDateTime>2018-05-23T21:46:14</AuthorizationDateTime>
<ReferenceNumber>asdf/ReferenceNumber>
<InitialBalance>40.00</InitialBalance>
<CurrentBalance>40.00</CurrentBalance>
<Message/>
<ProviderData><r10Ex:AuthorizationResponseCode>00</r10Ex:AuthorizationResponseCode><r10Ex:AuthorizationResponseText /><r10Ex:SerialNumber>000001433107</r10Ex:SerialNumber><r10Ex:PIN>749186266621</r10Ex:PIN><r10Ex:ExpirationDate>2019-05-23</r10Ex:ExpirationDate></ProviderData>
</AuthorizationResponse>
</OnlineServicesActivateResponse>
I have fetched the value 150 from the new request xml and store in string variable.
I want to replace this 150 with where ever value 40 in my dummy saved response which is saved in captures folder and send this back to the client.
In short: I want to load the dummy response xml saved in fiddler capture folder and replace some text in dummy response and resend this to client.