private string GetSelectorTarget (string xpath)
{
string tableName = xpath;
int index = tableName.LastIndexOf ('/');
// '>' is enough. If XPath [0] = '/', it is invalid.
// Selector can specify only element axes.
if (index > 0)
tableName = tableName.Substring (index + 1);
// Round QName to NSName
index = tableName.LastIndexOf (':');
if (index > 0)
tableName = tableName.Substring (index + 1);
return XmlHelper.Decode (tableName);
}