Answers for "xpath get attribute value c#"

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