mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 22:30:41 +01:00
XML transformation #612
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rmeshksar on GitHub (Jun 18, 2024).
Originally assigned to: @StefH on GitHub.
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:
2c22f91293/test/Handlebars.Net.Helpers.Tests/Templates/XPathPathHelpersTemplateTests.csThanks.
@StefH commented on GitHub (Jun 26, 2024):
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
@StefH commented on GitHub (Jun 27, 2024):
https://github.com/Handlebars-Net/Handlebars.Net.Helpers/pull/99
@StefH commented on GitHub (Jun 28, 2024):
@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.@StefH commented on GitHub (Jul 2, 2024):
@rmeshksar
Did you have time to review this?
@StefH commented on GitHub (Jul 3, 2024):
https://github.com/WireMock-Net/WireMock.Net/pull/1128
@rmeshksar commented on GitHub (Jul 4, 2024):
Thanks so much and sorry that I did not notice this to respond in time,
I will try it.
@StefH commented on GitHub (Jul 5, 2024):
It's not yet in master, but you can try preview 1.5.59-ci-18865