我有一个.NET Web服务正在返回以下内容:
<ArrayOfAddressLocation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://tempuri.org/">
<AddressLocation>
<AddressLocationId>0</AddressLocationId>
<SubscribedCount>0</SubscribedCount>
<City>Florida A & M</City>
<CountryStateName>Florida</CountryStateName>
<CountryName>United States</CountryName>
</AddressLocation>
</ArrayOfAddressLocation>
我正在尝试为每个位置解析此城市节点,但是,在
&
在控制台:
//2010-09-28 11:14:02.121 Appt Pal[8296:207] Florida A
//2010-09-28 11:14:02.121 Appt Pal[8296:207] &
//2010-09-28 11:14:02.121 Appt Pal[8296:207] M
我不明白的是
&
是有效的XML,但它不维护节点的值…