open fun xml(xmlContent: String): ResultMatcher
Parse the response content and the given string as XML and assert the two are "similar" - i.e. they contain the same elements and attributes regardless of order.
Use of this matcher requires the XMLUnit library.
xmlContent - the expected XML content
See Also
MockMvcResultMatchers#xpath(String, Object...)MockMvcResultMatchers#xpath(String, Map, Object...)