Basic XQuery Examples

This page contains a collection of simple XQuery examples which should give a first glimpse of what's possible with eXist and XQuery. To learn more about XQuery, we recommend to head over to the excellent XQuery Wikibook or buy one of the available books on XQuery.

Though the syntactic elements of XQuery can be learned quickly, it is a functional language and it may take some time to get a feel for it if you are coming from a procedural world.

  1. Basic XQuery
  2. Analyze data
  3. Writing functions
  4. Generate HTML output
  5. Using the full text index
  6. Transforming XML with XSLT
  7. Validate a document programmatically