User: What is the difference between a XPath and a XQuery?
Assistant: XQuery is an extension to XPath that allows you to use functions and variables. XPath is a language for selecting nodes in XML documents. XPath is the standard language for accessing XML documents, but XQuery is a standard for querying XML documents.