2011-09-07 63 views
-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> 

ü可以建議如何解析呢?

+0

這有什麼代碼問題了嗎? –

+1

你沒有說明你的問題,它是太多的代碼。更簡潔。此外,您應該格式化您的代碼,因此可以在不需要水平滾動的情況下閱讀它。 –

回答