Hi
I have to parse an XML document with HTML formatting tags in it. I embedded the HTML tags within <![CDATA[ as in
<TERM name="access">
<DEFINITION>Principle that <![CDATA[ <br> ]]> obligates companies to guarantee consumers the right to inspect the personal information.
</DEFINITION>
</TERM>
The problem with this is that when I try to extract the value of DEFINITION using the xml parser, I get it as 'Principle that' compared to what I intend to get like 'Principle that <br> obligates companies to guarantee consumers the right to inspect the personal information'.
I don't understand why the parser is totally returning the value ignoring the text after the CDATA has begun.As far as my understanding CDATA makes the text within it to be ignored by the parser while validating it and returns the embedded text too('<br>' in this case).
Can somebody suggest a way to solve this problem?