I don't think it's possible to create a custom variable. But you can easily solve your problems by using Mendix's default XPath. What's the problem?
I don’t think Mendix allows to create custom Xpath variable. And for which scenario are you trying to create custom xpath variable?
Hi Senthilnathan S,
As commented by others, is not possible by Mendix yet, there’s an idea open in the Forum for the reuse of XPath if you want to upvote that.