I want to find the xpath to a tag which is inside a CDATA. Below the xml fragment.
<books>
<book>
<title></title>
<content><![CDATA[<p>Hi hello Hw r u?</p><p>We are fine</p><p>Hi babeeee!!!!</p>]]> </content>
</book>
</books>
I want to get the data which is inside the first <p> tag inside <content>.
Can anybody please give the correct xpath to it?
CDATA contains arbitrary character data. In contradiction to PCDATA (acronym of parsed character data) it is not parsed, so there is no xpath to “elements” inside of it.