コード例 #1
0
ファイル: PathTools.cs プロジェクト: soltys/dotXMLTools
 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();
 }
コード例 #2
0
 public ElementAttributeValueSelector(string elemPath,PathAttributeValueGroup[] listPAVG)
 {
     elementPath = PathTools.RemoveAttributes(elemPath);
     pavgArray = listPAVG;
 }