Ignore certain Xml tags

33 views
Skip to first unread message

Kajal Gupta

unread,
Jun 29, 2021, 2:17:16 PM6/29/21
to wiremock-user
I wish to implement request matching while keeping some specific tags as optional.

Example - 
 <Person id="213">
    <Class>
         <No>22</No>
    </Class>
    <Name>abc</Name>
</Person>

While matching this to a request body, I wish to keep <Class> tag as optional. How can I achieve that? 

P.S. ${xmlunit.ignore} does not help to ignore specific tags
Reply all
Reply to author
Forward
0 new messages