In XPath, variables are denoted using the $ symbol prefix, such as $varName. This is a standard convention across many programming languages and XPath specifications. The # symbol typically indicates comments or IDs, @ is used for attributes, and & is used for entity references in XML, none of which are used for variable notation.