I was reading a text book to learn XPath. And the below line I found from that book:
How does XPath handle text in XML CDATA sections? Each character within a CDATA section is treated as character data. In other words, a CDATA section is treated as if the
<![CDATA[and]]>were removed and every occurrence of markup like<and&was replaced by the corresponding character entities like<and&.
But the book didn't give any examples to explain the above sentences. Can any one help me to understand what the Author tried to say in the below:
a CDATA section is treated as if the
<![CDATA[and]]>were removed and every occurrence of markup like<and&was replaced by the corresponding character entities like<and&.
<is treated as if it was<, and&is&. e.g. the xml metacharacters lose their "meta-ness".