using System.Collections.Generic;
using System.Diagnostics;
using System.Linq.Expressions;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
using System.Threading.Tasks;
using System.Collections;
using System.Text.RegularExpressions;
using System.ComponentModel;
using System.Collections.ObjectModel;
public static void Main()
string MyXml = @"<?xml version='1.0' encoding='UTF-8'?>
<type>neighborhood</type>
<formatted_address>Phase 1, Sector 57, Sahibzada Ajit Singh Nagar, Punjab, India</formatted_address>
<long_name>Phase 1</long_name>
<short_name>Phase 1</short_name>
<type>neighborhood</type>
<place_id>ChIJDTCn80PuDzkRFK0l5i2S0iQ</place_id>
XDocument XDocument = XDocument.Parse(MyXml);
var Filtered =XDocument.Descendants("formatted_address").FirstOrDefault();
Console.WriteLine("formatted_address: "+Filtered.Value);