Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# xpath read attribute value

var eval = xml.XPathEvaluate("/configuration/log4net/appender/param[@name='File']/@value");
var value = ((IEnumerable)eval).OfType<XAttribute>().Single().Value;
 
PREVIOUS NEXT
Tagged: #xpath #read #attribute
ADD COMMENT
Topic
Name
9+6 =