This document provides an introduction to querying XML documents using XPath and XQuery. It begins with an overview of XML and its tree structure. It then covers the basics of XPath, including path expressions and functions. XQuery is introduced as a more powerful query language that incorporates XPath and allows restructuring results. Examples are provided to demonstrate XPath and XQuery expressions for retrieving, filtering, joining, and aggregating data from XML documents. Built-in functions, sorting, and nested queries in XQuery are also discussed.