I am trying to read CDATA section of an xml node based upon the where clause.
<Book>
<BookItem ISBN="SKS84747"><![CDATA[20]]> </BookItem>
<BookItem ISBN="LHKGOI84747"><![CDATA[50]]> </BookItem>
<BookItem ISBN="PUOT84747"><![CDATA[20]]> </BookItem>
</Book>
This code gives me all the CDATA sections,
var value = from v in x.Descendants("BookItem").OfType<XCData>()
select (string)v.Value;
How to put where clause based on ISBN ?
How can I read this CDATA using LINQ to XML.
or
before ToList()