Re: Retrieve text only from HTML code that is inside XML file

Tech-Archive recommends: Fix windows errors by optimizing your registry



"Roland" <ajay.sonawane@xxxxxxxxx> wrote in message
news:1118136859.910532.114550@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hello there
> How can I get the text only from HTML code that is inside CDATA section
> of XML file. Means I have an XML file, In one tag of it there is some
> HTML Code inside CDATA section. I want to retrieve only text from that
> HTML code. How could I do so ?
> For Example.
>
> <?xml version="1.0" encoding="ISO-8859-1" ?>
> <title>
> <![CDATA[
> <table>
> <tr>
> <td>
> <small>This is text</small><br><br>
> <b>More Text</b>
> <a href=http://rediff.com </a>
> <td>
> </tr>
> </table>
> ]]>
> <title>
> </

Could you clarify what text you want? The HTML tags and all, just the "This
is text\n\nMore Text" strings -- with or without the carriage returns, or
those as well as the URL as text, or some other interpretation/combination?
--
Jeff Partch [VC++ MVP]


.



Relevant Pages

  • Re: Including a xml file in the head tag
    ... stylesheet and javascript file but don't have a clue how to include a ... xml file into my html code. ... There are various data formats which are expressed in XML (FOAF, ...
    (alt.html)
  • Re: XML write problem
    ... Aahz wrote: ... I need to write xml file with some elements inside that ... actually contains html code, like this: ... Using a CDATA marked section or escaping it to entity references will just mean tears and recriminations later in the document cycle. ...
    (microsoft.public.dotnet.xml)
  • Retrieve text only from HTML code that is inside XML file
    ... Means I have an XML file, In one tag of it there is some ... HTML Code inside CDATA section. ... Prev by Date: ...
    (microsoft.public.vc.mfc)
  • Retrieve text only from HTML code that is inside XML file
    ... Means I have an XML file, In one tag of it there is some ... HTML Code inside CDATA section. ... Prev by Date: ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: XML write problem
    ... I need to write xml file with some elements inside that ... actually contains html code, like this: ... the writer will automatically escape for you. ... Joe Fawcett (MVP - XML) ...
    (microsoft.public.dotnet.xml)