Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: LINQ to XML >Thread Next - Re: LINQ to XML Re: LINQ to XMLTo: 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. >> > > | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
