我有下面的 xml 结果,我如何解析它并获取字段的值?请帮忙
<?xml version='1.0' encoding='UTF-8' standalone='no' ?>
<ATBResponse command="get" result="success">
<Record table="User" partial="true">
<Field name="accountID" primaryKey="true"><![CDATA[family_1]]></Field>
<Field name="userID" primaryKey="true"><![CDATA[brat_peet]]></Field>
</Record>
<Record table="User" partial="true">
<Field name="accountID" primaryKey="true"><![CDATA[family_1]]></Field>
<Field name="userID" primaryKey="true"><![CDATA[Miketyson]]></Field>
</Record>
<Record table="User" partial="true">
<Field name="accountID" primaryKey="true"><![CDATA[family_1]]></Field>
<Field name="userID" primaryKey="true"><![CDATA[Kennedy]]></Field>
</Record>
</ATBResponse>
我有下面的 xml 结果,我怎样才能解析它并获得这样的字段值?
let account = "family_1"
let users = "brat_peet" , "Miketyson" , "Kennedy"