我有这个 xml 示例,我想使用 C# 将它反序列化为 T 类型列表,它包含元素或项目及其详细信息,列表中可能有 1 个或多个项目(1),因此我想将其作为列表
<?xml version="1.0" encoding="windows-1252"?>
<QBPOSXML>
<QBPOSXMLMsgsRs>
<SalesOrderQueryRs requestID="809150883" retCount="4" statusCode="0" statusMessage="Status OK" statusSeverity="Info">
<SalesOrderRet>
<TxnID>2425100528976298241</TxnID>
<TimeModified>2018-05-24T13:40:31-04:00</TimeModified>
<BalanceDue>83.60</BalanceDue>
<CustomerListID>2421462034504646913</CustomerListID>
<DepositBalance>0.00</DepositBalance>
<Discount>0.00</Discount>
<DiscountPercent>0.00</DiscountPercent>
<ItemsCount>1</ItemsCount>
<PriceLevelNumber>1</PriceLevelNumber>
<Qty>1.00</Qty>
<SalesOrderNumber>6</SalesOrderNumber>
<SalesOrderStatusDesc>Open</SalesOrderStatusDesc>
<StoreExchangeStatus>Modified</StoreExchangeStatus>
<Subtotal>77.77</Subtotal>
<TaxAmount>5.83</TaxAmount>
<TaxCategory>Local Sales Tax</TaxCategory>
<TaxPercentage>7.50</TaxPercentage>
<Total>83.60</Total>
<TxnDate>2018-05-24</TxnDate>
<UnfilledPercent>100.00</UnfilledPercent>
<BillingInformation>
<CompanyName>SimboliQ</CompanyName>
<FirstName>Basel</FirstName>
<LastName>Abdo</LastName>
</BillingInformation>
<ShippingInformation>
<Shipping>0.00</Shipping>
</ShippingInformation>
<SalesOrderItemRet>
<ListID>5523943615132238081</ListID>
<TxnLineID>1</TxnLineID>
<ALU>YX650-15532</ALU>
<Attribute>15.5</Attribute>
<Commission>0.00</Commission>
<Desc1>Youth Baseball Bat</Desc1>
<Desc2>Metal</Desc2>
相关分类