【发布时间】:2020-08-19 00:25:45
【问题描述】:
我有一个如下的 XML:
<test-run>
<test-suite>
<test-suite>
<test-case id="1234" name="ABC" result="Passed">
</test-case>
</test-suite>
</test-suite>
</test-run>
这是我正在使用的示例 XML 文件。 如何使用 C# 从中检索 id、name 和 Result?
【问题讨论】:
-
1) 这不是有效的 XML - 2) 我看不到您的代码
标签: c# xml selenium selenium-webdriver xml-parsing