我的 Web 服务返回一个Dictionary<int, TrialBalanceAccountSummaryModel>
结构,但返回的 xml 字符串看起来很有趣。
请看下图,如何删除节点< KeyValueOfintReport[random_char] >,并用像<Report>这样的普通节点替换它?
PS Stop 给蛇画腿,微软!
<?xml version="1.0" encoding="UTF-8"?>
<Reports>
<KeyValueOfintReportLjh4bohd>
<Key>10000001</Key>
<Value>
<AccountNo>10000001</AccountNo>
<AccumulatedAmount>560000</AccumulatedAmount>
<CompanyCode>17</CompanyCode>
<FiscalYear>2012</FiscalYear>
<Period01Amount>560000</Period01Amount>
<Period02Amount>0</Period02Amount>
<Period03Amount>0</Period03Amount>
<Period04Amount>0</Period04Amount>
<Period05Amount>0</Period05Amount>
<Period06Amount>0</Period06Amount>
<Period07Amount>0</Period07Amount>
<Period08Amount>0</Period08Amount>
<Period09Amount>0</Period09Amount>
<Period10Amount>0</Period10Amount>
<Period11Amount>0</Period11Amount>
<Period12Amount>0</Period12Amount>
<Period13Amount>0</Period13Amount>
<Period14Amount>0</Period14Amount>
<Period15Amount>0</Period15Amount>
</Value>
</KeyValueOfintReportLjh4bohd>
<KeyValueOfintReportLjh4bohd>
<Key>10000002</Key>
<Value>
<AccountNo>10000002</AccountNo>
<AccumulatedAmount>191234</AccumulatedAmount>
<CompanyCode>17</CompanyCode>
<FiscalYear>2012</FiscalYear>
<Period01Amount>191234</Period01Amount>
<Period02Amount>0</Period02Amount>
<Period03Amount>0</Period03Amount>
<Period04Amount>0</Period04Amount>
<Period05Amount>0</Period05Amount>
<Period06Amount>0</Period06Amount>
<Period07Amount>0</Period07Amount>
<Period08Amount>0</Period08Amount>
<Period09Amount>0</Period09Amount>
<Period10Amount>0</Period10Amount>
<Period11Amount>0</Period11Amount>
<Period12Amount>0</Period12Amount>
<Period13Amount>0</Period13Amount>
<Period14Amount>0</Period14Amount>
<Period15Amount>0</Period15Amount>
</Value>
</KeyValueOfintReportLjh4bohd>
</Reports>