我有以下 XML:
<tickets>
<ticket>
<subject>ABC</subject>
<entries-field>
<entry-field>
<field-id>12345</field-id>
<value>New</value>
</entry-field>
<entries-field>
<ticket>
<ticket>
<subject>DEF</subject>
<entries-field>
<entry-field>
<field-id>67890</field-id>
<value>category_cc</value>
</entry-field>
<entry-field>
<field-id>12345</field-id>
<value>Pending</value>
</entry-field>
<entries-field>
<ticket>
<ticket>
<subject>GHI</subject>
<ticket>
</tickets>
我需要将其转换为 C# 数据表,如下所示:
Subject Status
------------------------
ABC New
DEF Pending
GHI
我尝试了很多方法,但没有运气。如果有人能给出一个好主意,请不胜感激。非常感谢你。