Apologies, I somehow have deleted the closing tags while copying. My XML looks like this,
<p><span style="color: black; font-family: arial,sans-serif; font-size: 10pt;">1: Communication with CNF GM Wallice</span></p><p>hdsfgkwlfewfw</p><ul><li>something</li><li>something2</li></ul><p>iahgferbfeogf</p>
But yes, as you said, if the whole xml is enclosed within a single tag, we are getting the correct values using Xpath but in the cases like I mentioned above I am getting null value using xpath. Any idea on how to solve that or any workaround.