{
"match": true,
"comment": "XML Requests match with regex",
"expected" : {
"method": "POST",
"path": "/",
"query": "",
"headers": {"Content-Type": "application/xml"},
"matchingRules": {
"$.body.alligator['@name']": {"match": "regex", "regex": "\\w+"},
"$.body.alligator.favouriteColours.favouriteColour.#text": {"match": "regex", "regex": "red|blue"}
},
"body": "redblue"
},
"actual": {
"method": "POST",
"path": "/",
"query": "",
"headers": {"Content-Type": "application/xml"},
"body": "bluered"
}
}