Open rmeshksar opened 1 week ago
It is possible, but I don't know the answer.
For this scenario, XSLT transformation would be a better choice. However, that's not yet implemented in Handlebars.Net
@rmeshksar
I've released a preview for WireMock.Net : 1.5.59-ci-18848
(https://github.com/WireMock-Net/WireMock.Net/wiki/MyGet-preview-versions) which can transform xml using xslt.
Hi, Consider this xml in the body of a request:
In response, how can I transform it to:
Basically I want to loop in nodes "//Person" and for each item use that node to generate response node using XPath selector on the request node.
I looked at the examples here but none of them worked in this case: https://github.com/Handlebars-Net/Handlebars.Net.Helpers/blob/2c22f91293b2cbcb94c0c39906b0393fc7969b9c/test/Handlebars.Net.Helpers.Tests/Templates/XPathPathHelpersTemplateTests.cs
Thanks.