Megan Taylor

front-end dev, volunteacher, news & data junkie, bibliophile, Flyers fan, sci-fi geek and kitteh servant

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

Mixing queries and XML
{query}

November 16, 2011 | Comments Off on Intro to Databases: Querying XML, XQuery Intro | Categories: Posts | Permalink

Comments are closed.

%d bloggers like this: