How to skip/ignore Envelope & Header when comparing two Soap(XML) responses
Hi all,
I'm trying to compare and find the differences between two soap(XML) responses usning groovy (help of xmlunit or some other approaches), I can able to do partially(Nodes and attributes) but I cannot able to skip intial/last lines(Header and Body). Would like to skip those as per requirement, if those are not equal as well.
Response1:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
************** (Nodes and Attributes, I can able to comare)
</soapenv:Body>
</soapenv:Envelope>
Response2:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
************** (Nodes and Attributes, I can able to comare)
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Please help me if anyone have any idea.
Thanks in advance