public static string ElementTagNameToName(this string tag) { return tag.Contains("/") ? tag.Substring(tag.LastIndexOf('/') + 1) : tag; } }