How to get the just the Content inside an XElement

PlayestStotly

New Member
How do I use linq2sql to get a node that contains any matching content excluding any nested elements.In other words, I have an XElement containing\[code\]<div> <div> <p> The Content </p> <p> Some other content </p> </div></div>\[/code\]I want to get that first <p> element based on the fact that its contents when Trimmed are exactly "The Content"
 
Back
Top