diff --git a/Directory.Build.props b/Directory.Build.props
index cd4a2184..4310c281 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -4,7 +4,7 @@
- 1.0.24
+ 1.0.25
diff --git a/GitHubReleaseNotes.txt b/GitHubReleaseNotes.txt
index 554d7463..dd30771c 100644
--- a/GitHubReleaseNotes.txt
+++ b/GitHubReleaseNotes.txt
@@ -1,3 +1,3 @@
https://github.com/StefH/GitHubReleaseNotes
-GitHubReleaseNotes.exe --output CHANGELOG.md --skip-empty-releases --version 1.0.24.0
\ No newline at end of file
+GitHubReleaseNotes.exe --output CHANGELOG.md --skip-empty-releases --version 1.0.25.0
\ No newline at end of file
diff --git a/examples/WireMock.Net.Console.Net452.Classic/MainApp.cs b/examples/WireMock.Net.Console.Net452.Classic/MainApp.cs
index 334fecc0..8ea9ded1 100644
--- a/examples/WireMock.Net.Console.Net452.Classic/MainApp.cs
+++ b/examples/WireMock.Net.Console.Net452.Classic/MainApp.cs
@@ -94,6 +94,13 @@ namespace WireMock.Net.ConsoleApplication
)
.RespondWith(Response.Create().WithBody("XPathMatcher!"));
+ server
+ .Given(Request.Create()
+ .WithPath("/xpaths").UsingPost()
+ .WithBody(new[] { new XPathMatcher("/todo-list[count(todo-item) = 3]"), new XPathMatcher("/todo-list[count(todo-item) = 4]") })
+ )
+ .RespondWith(Response.Create().WithBody("xpaths!"));
+
server
.Given(Request
.Create()
diff --git a/src/WireMock.Net/Admin/Mappings/BodyModel.cs b/src/WireMock.Net/Admin/Mappings/BodyModel.cs
index da5a725f..e45e5949 100644
--- a/src/WireMock.Net/Admin/Mappings/BodyModel.cs
+++ b/src/WireMock.Net/Admin/Mappings/BodyModel.cs
@@ -9,5 +9,10 @@
/// Gets or sets the matcher.
///
public MatcherModel Matcher { get; set; }
+
+ ///
+ /// Gets or sets the matchers.
+ ///
+ public MatcherModel[] Matchers { get; set; }
}
}
\ No newline at end of file
diff --git a/src/WireMock.Net/Matchers/Request/RequestMessageBodyMatcher.cs b/src/WireMock.Net/Matchers/Request/RequestMessageBodyMatcher.cs
index 18a81443..3faf8c71 100644
--- a/src/WireMock.Net/Matchers/Request/RequestMessageBodyMatcher.cs
+++ b/src/WireMock.Net/Matchers/Request/RequestMessageBodyMatcher.cs
@@ -1,5 +1,6 @@
-using System;
using JetBrains.Annotations;
+using System;
+using System.Linq;
using WireMock.Util;
using WireMock.Validation;
@@ -26,16 +27,16 @@ namespace WireMock.Matchers.Request
public Func