-4
与命名空间的一个xml我为有这样类型的XML与我解析在C#
<?xml version="1.0" encoding="UTF-8"?>
<ArrayOfCustomer
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://tempuri.org/">
<Customer>
<Customer_id>143</Customer_id>
<Cust_last_name>Deutsch</Cust_last_name>
<Cust_first_name>Leslie</Cust_first_name>
<Gender_id>2</Gender_id>
<Email>[email protected]</Email>
<Income_id>3</Income_id>
</Customer>
<Customer>
<Customer_id>327</Customer_id>
<Cust_last_name>Marko</Cust_last_name>
<Cust_first_name>Shelby</Cust_first_name>
<Gender_id>1</Gender_id>
<Email>[email protected]</Email>
<Income_id>5</Income_id>
</Customer>
</ArrayOfCustomer>
ü可以建议如何解析呢?
这有什么代码问题了吗? –
你没有说明你的问题,它是太多的代码。更简洁。此外,您应该格式化您的代码,因此可以在不需要水平滚动的情况下阅读它。 –