Well, if you're tired of typing XPathNavigator all the time, you can create an alias for it. Just put this under the other using statements at the top of the file:
using XPN = System.Xml.XPath.XPathNavigator;
Now you can use
XPN root = MainDataSource.CreateNavigator();
Also, it's not actually necessary to type MainDataSource here. All you need is CreateNavigator(), so now you're down to this:
XPN root = CreateNavigator();
Also, you can add a function like this:
XPathNavigator GetNode(XPathNavigator start, string path)
{
return start.SelectSingleNode(path, NamespaceManager);
}
And thanks to that, you can replace that second line you have there with:
string RegionName = GetNode(root, xpathRegName).Value;
Is that any better?