How do I retrieve element text inside CDATA markup via XPath?
/Obj/Name/text() is the XPath to return the content of the CDATA markup. What threw me off was the behavior of the Value property. For an XMLNode (DOM world), the XmlNode.Value property of an Element (with CDATA or otherwise) returns Null. The InnerText property would give you the CDATA/Text content. If you use Xml.Linq, XElement.Value returns … Read more