C#如何解析XML并循环 取值
<resultstatus="ok"><orderstatus=""rootOrderNo=""splitSign=""voucherPrice=""voucherCou...
<result status="ok">
<order status="" rootOrderNo="" splitSign="" voucherPrice="" voucherCount="" price_type="" totalCutPrice="0" backCashTotalPrice="0.0" deadline="" refundXcdDiff="" qavUp="" needPS="" createTime="" contactEmail="" contactMob="" contact="" policyType="" childFuelTax="" fuelTax="" constructionFee="" cpnr="" pnr="" price="" viewPrice="" xcdPrice="" insuranceCuttingPrice="" cabinnote="" backnote="" insuranceUnitPrice="" payStatus="" payChannel="" policyFriendly="" ticketMode="" policySource="" source="" childFaceValue="0" childPrintPrice="0" noPay="0.0" allPrice="24" orderNo="11" id="173">
<purchaseOrderInfo status="" price="" refund_price="" operator="" platform_mem_id="" offline_pay_cardno="" offline_pay_type="" pay_commercial_no="" tpp_type="" source_order_no="" source_transaction_id="" issue_ticket_platform_code="" issue_ticket_type=""/>
<flight realCode="" arrTime="" depTime="" depDay="" arr="" dep="" ccabin="" cabin="" code=""/>
<flight realCode="" arrTime="" depTime="" depDay="" arr="" dep="" ccabin="" cabin="" code=""/>
<flight realCode="" arrTime="" depTime="" depDay="" arr="" dep="" ccabin="" cabin="" code=""/>
<passenger price="" eticketNum="" cardNum="" priceType="" cardType="" gender="" ageType="" birthday="" name="">
<flightInsurance insProductName="" insStatus="" insCompany="" unitPrice="" num="" insuranceNo=""/>
</passenger>
<passenger price="" eticketNum="" cardNum="" priceType="" cardType="" gender="" ageType="" birthday="" name="">
<flightInsurance insProductName="" insStatus="" insCompany="" unitPrice="" num="" insuranceNo=""/>
</passenger>
</order>
</result> 展开
<order status="" rootOrderNo="" splitSign="" voucherPrice="" voucherCount="" price_type="" totalCutPrice="0" backCashTotalPrice="0.0" deadline="" refundXcdDiff="" qavUp="" needPS="" createTime="" contactEmail="" contactMob="" contact="" policyType="" childFuelTax="" fuelTax="" constructionFee="" cpnr="" pnr="" price="" viewPrice="" xcdPrice="" insuranceCuttingPrice="" cabinnote="" backnote="" insuranceUnitPrice="" payStatus="" payChannel="" policyFriendly="" ticketMode="" policySource="" source="" childFaceValue="0" childPrintPrice="0" noPay="0.0" allPrice="24" orderNo="11" id="173">
<purchaseOrderInfo status="" price="" refund_price="" operator="" platform_mem_id="" offline_pay_cardno="" offline_pay_type="" pay_commercial_no="" tpp_type="" source_order_no="" source_transaction_id="" issue_ticket_platform_code="" issue_ticket_type=""/>
<flight realCode="" arrTime="" depTime="" depDay="" arr="" dep="" ccabin="" cabin="" code=""/>
<flight realCode="" arrTime="" depTime="" depDay="" arr="" dep="" ccabin="" cabin="" code=""/>
<flight realCode="" arrTime="" depTime="" depDay="" arr="" dep="" ccabin="" cabin="" code=""/>
<passenger price="" eticketNum="" cardNum="" priceType="" cardType="" gender="" ageType="" birthday="" name="">
<flightInsurance insProductName="" insStatus="" insCompany="" unitPrice="" num="" insuranceNo=""/>
</passenger>
<passenger price="" eticketNum="" cardNum="" priceType="" cardType="" gender="" ageType="" birthday="" name="">
<flightInsurance insProductName="" insStatus="" insCompany="" unitPrice="" num="" insuranceNo=""/>
</passenger>
</order>
</result> 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询