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 4:14:00 PM
Scott M. wrote:
>> Here is how you can do it, using Joe's suggestion:
>>
>> XElement desc = XElement.Load(@"file.xml");
>> XElement data = XElement.Parse("<data>" + desc.Value +
>> "</data>");
>> Console.WriteLine(data.Value);
>
> After tweaking, I got this code running, but it doesn't strip out the
> markup, which is what I want.
Can you show us your code? My sample works for me as you described,
outputting the text without markup.
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
