View Single Post
  #7 (permalink)  
Old November 29th, 2007, 08:37 AM
Hughesie78 Hughesie78 is offline
Authorized User
 
Join Date: Nov 2007
Location: , , Ireland.
Posts: 67
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Hughesie78
Default

hi
sorry, here is my method
          public static string GetXPathString(string input)
           {
               string [] fragments = input.Split(new char[] {'\''});
               string result = "";
               result += "concat(''";
               for (int i = 0; i < fragments.Length; i++)
               {
                   result += ", '" + fragments[i] + "'";
                   if (i < fragments.Length - 1)
                   {
                       result += ", \"'\"";
                   }
               }
               result += ")";
              return result;

           }


here is the XPATH :
'//bank[text() = concat('', 'Clears through Bank name')] and ..branch[text()= concat('', 'Bank aa')] '
Reply With Quote