Hi,
How would I edit the code below to read XML CData text?
Thanks,
Viepia
XDocument connectedPCsXML = XDocument.Load( new
StreamReader(Re gistry.GetValue (@"HKEY_LOCAL_M ACHINE\software \myCompany\conf igDir",
"path",@"C:\Con figDir\") + "ConnectedPCs.x ml"));
var PCs = from PC in connectedPCsXML .Descendants("C onnectedPC")
select new
{
Name = PC.Element("Nam e").Value,
IP = PC.Element("IP" ).Value,
Description = PC.Element("Des cription").Valu e,
DnsName = PC.Element("Dns Name").Value
};
How would I edit the code below to read XML CData text?
Thanks,
Viepia
XDocument connectedPCsXML = XDocument.Load( new
StreamReader(Re gistry.GetValue (@"HKEY_LOCAL_M ACHINE\software \myCompany\conf igDir",
"path",@"C:\Con figDir\") + "ConnectedPCs.x ml"));
var PCs = from PC in connectedPCsXML .Descendants("C onnectedPC")
select new
{
Name = PC.Element("Nam e").Value,
IP = PC.Element("IP" ).Value,
Description = PC.Element("Des cription").Valu e,
DnsName = PC.Element("Dns Name").Value
};
Comment