public static PathAttributeValueGroup[] GetAttributeValue(string attributePart) { attributePart = PathTools.RemoveBrackets(attributePart); List<PathAttributeValueGroup> list = new List<PathAttributeValueGroup>(); foreach (var attrVal in attributePart.Split(';').Where(x => x.IsNotEmptyOrNull())) { string[] splitted = attrVal.Split('='); if (splitted.Length == 2) { PathAttributeValueGroup pavg = new PathAttributeValueGroup(); pavg.Attribute = splitted[0]; pavg.Value = splitted[1]; list.Add(pavg); } } return list.ToArray(); }
public ElementAttributeValueSelector(string elemPath,PathAttributeValueGroup[] listPAVG) { elementPath = PathTools.RemoveAttributes(elemPath); pavgArray = listPAVG; }