string serializedObject = PhysicalResult.XmlSerialize(); XElement xmlData = XElement.Parse(serializedObject); var result = (from child in xmlData.Elements("SMS") select child).ToList();
XDocument message = new XDocument(XDocument.Parse(xmlString)); 1. XCData cdata = message.DescendantNodes().OfType<XCData>().Where(m => m.Parent.Name == "iDa").ToList()[0]; string cDataContent = cdata.Value; 2. string cDataContent =message.Root.Descendants("iDa").First().Value; Where iDa => Holds the CDATA value
XElement XTemp = XElement.Load(YourXMLfile); var queryCDATAXML = from element in XTemp.DescendantNodes() where element.NodeType == System.Xml.XmlNodeType.CDATA select element.Parent.Value.Trim();
var cdataElement = xmlobj.DescendantNodes().OfType<XCData>().FirstOrDefault(); if (cdataElement != null) cdataContent= cdataElement.Value;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)