本文介绍了在mvc razor中分别读取xml响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi

i have a response xml as

<?xml version="1.0" encoding="utf-8"?>
<rcntsall version="2013/04">
<rcnt>11</rcnt>
<acnt>1</acnt>
<bscnt>0</bscnt>
</rcntsall>
<rcntsall>
<rcnt>15</rcnt>
<acnt>2</acnt>
<bscnt>1</bscnt>
</rcntsall>
<rcntsall>
<rcnt>23</rcnt>
<acnt>1</acnt>
<bscnt>0</bscnt>
</rcntsall>
<rcntsall>
<rcnt>53</rcnt>
<acnt>1</acnt>
<bscnt>0</bscnt>
</rcntsall>
<rcntsall>
<rcnt>52</rcnt>
<acnt>2</acnt>
<bscnt>1</bscnt>
</rcntsall>

I get above response for The request  i make  as

<makereq>
<rsrcnt>1</rsrcnt>
<acnt>1</acnt>
<bscnt>0<bscnt>
<rsrcnt>1</rsrcnt>
<acnt>2</acnt>
<bscnt>1<bscnt>
</makereq>

..i get correct response, but just want to differentiate response according to request (separate response) and display as below

For Acnt 1 and Bscnt 0 , Rcnt is 11
For Acnt 1 and Bscnt 0 , Rcnt is 23
For Acnt 1 and Bscnt 0 , Rcnt is 53

For Acnt 2 and Bscnt 1 , Rcnt is 15

For Acnt 2 and Bscnt 1 , Rcnt is 52

How to do this...in asp.net  mvz razor

推荐答案

这篇关于在mvc razor中分别读取xml响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-22 16:38