Re: Retrieve text only from HTML code that is inside XML file
- From: "Jeff Partch [MVP]" <jeffp@xxxxxxxx>
- Date: Thu, 9 Jun 2005 02:26:15 -0500
"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]
.
- Follow-Ups:
- References:
- Prev by Date: Re: Advice about correct object casting
- Next by Date: Re: How to make menu-messages go to subclassed window procedure?
- Previous by thread: Retrieve text only from HTML code that is inside XML file
- Next by thread: Re: Retrieve text only from HTML code that is inside XML file
- Index(es):
Relevant Pages
|