I've extracted some addresses from google maps and they are in an xml file. In myxml file I have some xelements like
<location>, <place_id>, <adr_address>, etc
The 'adr_address' element has different classes and each class contains, city, street, country, etc. values. How do I get each value from the 'adr_address' xElement
<adr_address><span class="street-address">1805 Geary Boulevard</span>, <span class="locality">San Francisco</span>, <span class="region">CA</span> <span class="postal-code">94115</span>, <span class="country-name">United States</span></adr_address>
I'm putting the adr_address xElement in to a object here, but not sure what to do to get the values of each class after that.
XElement firstOrDefault = xElement.Descendants("adr_address").FirstOrDefault();