Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: LINQ to XML

From: "Scott M." <smar@------.------>
To: NULL
Date: 6/12/2008 10:04:00 AM


Since when is a CDATA section not a good way to store markup?



"Joe Fawcett" <joefawcett@n...> wrote in message 
news:%23LehF7FzIHA.2220@T......
> Given that the data is in a CDAT section, not a good way to store mark-up, 
> then it is treated as text. To turn it into XML I think you'd have to 
> extract the whole of it and reload it into an XElement/XDocument and then 
> extract the text.
>
>
> -- 
>
> Joe Fawcett (MVP - XML)
>
> http://joe.fawcett.name
>
> "Scott M." <smar@n...> wrote in message 
> news:OGAElZDzIHA.6096@T......
>> How would I use LINQ to XML (vb .net) to extract just the text (not the 
>> markup) of the following:
>>
>> <description><![CDATA[<p><a 
>> href="http://www.msnbc.msn.com/id/25085248/"><img align="left" border="0" 
>> src="http://msnbcmedia.msn.com/j/msnbc/Components/ArtAndPhoto-Fronts/TECH/080610/g-080610-tec-tencent-4x3-10a.thumb.jpg" 
>> alt="" style="margin:0 5px 5px 0" /></a>In an interview, David Hajdu, 
>> author of the book "The Ten-Cent Plague: The Great Comic-Book Scare and 
>> How it Changed America," discusses the rise and fall of  the rise and 
>> fall of comics, and how their unwelcome reception compares to today's 
>> criticism of violent video games.</p><br clear="all" />]]></description>
>>
>> In other words, I'm only interested in:
>>
>> In an interview, David Hajdu, author of the book "The Ten-Cent Plague: 
>> The Great Comic-Book Scare and How it Changed America," discusses the 
>> rise and fall of  the rise and fall of comics, and how their unwelcome 
>> reception compares to today's criticism of violent video games.
>>
>> Thanks.
>>
>
> 




transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent