I have two type of request and in both the requests difference is only of the root element so I want to reuse the internal contents these messages are being posted to web API endpoint so they should be serialized automatically but not sure how to achieve this, can anyone help me with this, please?
<Reprocess>
<request>
<Title>Mrs</Title>
<ForeName>Lucy</ForeName>
</request>
</Reprocess>
<NewApplication>
<request>
<Title>Mrs</Title>
<ForeName>Lucy</ForeName>
</request>
</NewApplication>
First remove root of the xml and than serialize to your internal contents.