I have an XMLDocument object with InnerXml set a response I get from a web service. A sample response is like this:
<GetAddressResponse>
<AddressStatus>EXACT MATCH</AddressStatus>
<DefaultAddress>
<FirmName></FirmName>
<Address1></Address1>
<Address2>PO BOX 123</Address2>
<City>DAYTON</City>
<State>OH</State>
<Urbanization></Urbanization>
<Zip5>45475</Zip5>
<Zip4>1952</Zip4>
<CarrierRoute>B017</CarrierRoute>
<CountyName>MONTGOMERY</CountyName>
<DeliveryPoint>52</DeliveryPoint>
</DefaultAddress>
<AddressRecCount>0</AddressRecCount>
</GetAddressResponse>
I need to be able to first get and check the value of AddressStatus and based on the result, get everything under DefaultAddress. I am using .Net3.5 so I can use Linq if need be. Thank you in advance.