Answers for "c# xpath read attribute value"

C#
1

c# xpath read attribute value

var eval = xml.XPathEvaluate("/configuration/log4net/appender/param[@name='File']/@value");
var value = ((IEnumerable)eval).OfType<XAttribute>().Single().Value;
Posted by: Guest on January-13-2021

C# Answers by Framework

Browse Popular Code Answers by Language