Intro to Databases: Querying XML, XQuery Intro

Expression language (compositional)
Each expression operates on and returns sequence of elements
XPath is one type of expression

FLWOR expression
For $var in expr -> iterator variables set(N)
Let $var := expr -> assignment
Where condition -> filter
Order By expr -> sorts results
Return expr -> what we are actually trying to get
– All except Return are optional
– For and Let can be repeated and interleaved