.NET Fiddle

CSharp · Console

/Program.cs

using System;
using System.Xml;
using System.Xml.Linq;
using System.Xml.XPath;
					
public class Program
{
	public static void Main()
	{
		string xml = @"<root>
		   <country>
			   <name></name>
			   <locationOU>null</locationOU>
		   </country>
		   <country>
			   <name>Sweden</name>
			   <locationOU>Some Value</locationOU>
		   </country>
		   <country>
			   <name>Lithuania</name>
			   <locationOU>Some Value</locationOU>
		   </country>
		   <country>
			   <name>Belgium</name>
			   <locationOU>Some Value</locationOU>
		   </country>
		</root>";
		
		
		XDocument root = XDocument.Parse(xml);
		XElement result = root.XPathSelectElement("/root/country[name='Sweden']");
		
		Console.WriteLine(result.Element("locationOU").Value);
	}
}
;