// readme

PhoenixmlDb XQuery

A modern XPath/XQuery 4.0 engine for .NET with Full-Text Search and Update Facility support.

Features

XPath/XQuery 4.0

  • 76 new 4.0 functions across fn:, math:, map:, and array: namespaces
  • Record types: record(name as xs:string, age as xs:integer)
  • Enum types: enum("red", "green", "blue")
  • Union types: union(xs:string, xs:integer)
  • Thin arrow operator: $x -> upper-case()
  • FLWOR for member: iterate array members
  • FLWOR otherwise: fallback for empty results
  • Keyword arguments: f(name := value)
  • not keyword, otherwise operator, while clause

XQuery 3.1

  • Annotations: %public, %private, %updating on function and variable declarations
  • Module imports: import module namespace ns = "uri" at "location"
  • External variables: declare variable $x external; with runtime binding via SetExternalVariable()
  • Direct element constructors: <element attr="val">text {expr} more</element>
  • UCA collations: Unicode Collation Algorithm with lang, strength, fallback parameters

JSON Support

  • fn:parse-json() โ€” parse JSON strings into XDM maps and arrays -โ€ฆ