using System.Collections;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Text.RegularExpressions;
namespace ConsoleApplication9
public static void Main(string[] args)
<OtherKeyword>select</OtherKeyword>
<WhiteSpace></WhiteSpace>
<WhiteSpace></WhiteSpace>
<OtherKeyword>from</OtherKeyword>
<WhiteSpace></WhiteSpace>
<Other>bal_impacts_t</Other>
<WhiteSpace></WhiteSpace>
var xDoc = XDocument.Parse(xml);
var nodes = (from res in xDoc.Descendants("Clause").Descendants("SelectionTarget").Descendants() select res);
var name = String.Join("", nodes.Select(n=>n.Name == "WhiteSpace"?" ":n.Value));