<test-case name="SuccessfulOneTimePayment" executed="True" result="Success" success="True" time="211.262" asserts="9">
<categories>
<category name="Regression" />
</categories>
<properties>
<property name="TestcaseId" value="70592" />
</properties>
</test-case>
Can anyone help me to fetch TestcaseId value=70592 from this xml?
var testcaseid = xml.Root.Descendants("test-case").Elements("categories").Elements("properties")
.Where(s => s.Attribute("name") != null)
.ToList();
I tried the above code which is not helping me.
xml.Root.Descendants("test-case").Elements("properties").