Earlier i posted a topic by the subject line Xpath Namespace problem in this forum for a soution to the xpath namespace problem.
After doing some googling i found the solution(It perfectly correct to my problem).
The solution i'm explaining here. It may be helpful to the others.
please check my previous post for the problem .It has subject line:Xpath Namespace problem
Thanks for posting this to help others, however in future you can probably reply to the original topic (so that it's all together) and also use the code button to syntax highlight your code, easier to read for everyone!