How to create custom rules in plsql

Need help on how to write custom rules using xpath…grant select user.table to user;

I need xpath expression to find select keyward over all the lines…using plsql plug-in custom rule

which means bug will be identified against my xpath expressions… i tried like this but not working…any suggestion will be appreciated…//IDENTIFIER[@tokenValue) = select]…please suggest correct xpath query for this