Asp.net webservice正在返回外观有趣的xml
我的web服务返回一个Asp.net webservice正在返回外观有趣的xml,asp.net,web-services,xml-serialization,Asp.net,Web Services,Xml Serialization,我的web服务返回一个字典结构,但是返回的xml字符串看起来很有趣 请参见下图,如何删除节点,并将其替换为正常节点,如 p.S.Stop画蛇的腿,微软 <?xml version="1.0" encoding="UTF-8"?> <Reports> <KeyValueOfintReportLjh4bohd> <Key>10000001</Key>
字典
结构,但是返回的xml字符串看起来很有趣
请参见下图,如何删除节点 <?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>
10000001
10000001
560000
17
2012
560000
0
0
0
0
0
0
0
0
0
0
0
0
0
0
10000002
10000002
191234
17
2012
191234
0
0
0
0
0
0
0
0
0
0
0
0
0
0
没有人能准备好您的图像。发布实际的XML怎么样?这是WCF、ASMX还是其他东西?基于元素名称,我认为它是WCF……@Tim它是MVC4WebAPI