Kōtuku
  • Gallery
  • API
  • Wiki
  • GitHub
    •  Overview
    • Audio
    • Config
    • Core
    • Display
    • Document
    • Font
    • HTTP
    • Network
    • Regex
    • SVG
    • Tiri
    • Vector
    • XML
    • XQuery
    • XRandR
      • Audio
      • MP3
      • Sound
      • File
      • MetaClass
      • Module
      • StorageDevice
      • Task
      • Thread
      • Time
      • Compression
      • CompressedStream
      • Config
      • LZMAStream
      • Script
      • Tiri
      • XML
      • XQuery
      • Controller
      • BlurFX
      • ColourFX
      • CompositeFX
      • ConvolveFX
      • DisplacementFX
      • FilterEffect
      • FloodFX
      • ImageFX
      • LightingFX
      • MergeFX
      • MorphologyFX
      • OffsetFX
      • RemapFX
      • SourceFX
      • TurbulenceFX
      • WaveFunctionFX
      • Scintilla
      • Bitmap
      • Clipboard
      • Display
      • Document
      • Font
      • Image
      • Pointer
      • Surface
      • SVG
      • ClientSocket
      • HTTP
      • NetClient
      • NetLookup
      • NetServer
      • NetSocket
      • Proxy
      • Gradient
      • GradientConic
      • GradientContour
      • GradientDiamond
      • GradientDiffusion
      • GradientDistal
      • GradientGouraud
      • GradientLinear
      • GradientMesh
      • GradientRadial
      • GradientVoronoi
      • Vector
      • VectorClip
      • VectorColour
      • VectorEllipse
      • VectorFilter
      • VectorGradient
      • VectorGroup
      • VectorImage
      • VectorPath
      • VectorPattern
      • VectorPolygon
      • VectorRectangle
      • VectorScene
      • VectorShape
      • VectorSpiral
      • VectorText
      • VectorTransition
      • VectorViewport
      • VectorWave
      • Linux Builds
      • Windows Builds
      • Customising Your Build
      • Kōtuku Objects
      • Kōtuku In Depth
      • Kōtuku Design Patterns
      • Coding With AI
      • Regex Manual
      • XML Comparisons
      • Tiri Reference Manual
      • Config API
      • Defer Syntax
      • GUI API
      • HTTP Server API
      • I/O API
      • JSON API
      • OAuth API
      • Options API
      • Proxy Server API
      • Tempus API
      • URL API
      • VFX API
      • Widgets
      • RIPL Reference Manual
      • Origo
      • Flute / Unit Testing
      • Tuku
      • Embedded Document Format
      • TDL Reference Manual
      • TDL Tools
      • Action Reference Manual
      • System Error Codes

XQuery Module

Provides XPath 2.0 and XQuery 1.0+ support for the XML module.

The XQuery module provides comprehensive support for XPath 2.0 and XQuery languages, enabling powerful querying and navigation of XML documents. It provides the XQuery class as its primary interface, and operates in conjunction with the XML class to provide a standards-compliant query engine with extensive functionality.

Functions

Classes

XQuery

Constants

XEF | XIF | XPVT | XQF | XQueryNodeType

XEF Type

Options for XQuery evaluation flags.

NameDescription
XEF::LIMIT_SCOPEFor tag specific queries, limit the scope to the specified element.
XQuery module documentation © Paul Manias © 2025-2026

XIF Type

Result flags for InspectFunctions().

NameDescription
XIF::ALLSynonym for AST | NAME | PARAMETERS | RETURN_TYPE | USER_DEFINED | SIGNATURE
XIF::ASTInclude the compiled function body in the inspection result.
XIF::NAMEInclude function name in the inspection result.
XIF::PARAMETERSInclude function parameters in the inspection result.
XIF::RETURN_TYPEInclude function return type in the inspection result.
XIF::SIGNATUREInclude function signature in the inspection result.
XIF::USER_DEFINEDInclude user-defined status in the inspection result.
XQuery module documentation © Paul Manias © 2025-2026

XPVT Type

Type descriptors for XPathValue

NameDescription
XPVT::Array
XPVT::Boolean
XPVT::Date
XPVT::DateTime
XPVT::Map
XPVT::NodeSet
XPVT::Number
XPVT::String
XPVT::Time
XQuery module documentation © Paul Manias © 2025-2026

XQF Type

Flags indicating the features of a compiled XQuery expression.

NameDescription
XQF::BASE_URI_DECLAREDStatic base URI declared.
XQF::BOUNDARY_PRESERVEBoundary-space preserve mode.
XQF::CONSTRUCTION_PRESERVEConstruction preserve mode.
XQF::DEFAULT_COLLATION_DECLAREDDefault collation declared.
XQF::DEFAULT_ELEMENT_NSDefault element namespace declared.
XQF::DEFAULT_FUNCTION_NSDefault function namespace declared.
XQF::HAS_PROLOGThe XQuery declares a prolog.
XQF::HAS_WILDCARD_TESTSWildcard name tests present.
XQF::LIBRARY_MODULEProlog declares a module namespace (library module).
XQF::MODULE_IMPORTSOne or more module imports are declared.
XQF::ORDERING_UNORDEREDOrdering mode is unordered.
XQF::XPATHThe expression is an XPath location string.
XQuery module documentation © Paul Manias © 2025-2026

XQueryNodeType Type

NameDescription
XQueryNodeType::ARRAY_CONSTRUCTOR
XQueryNodeType::ATTRIBUTE_VALUE_TEMPLATE
XQueryNodeType::AXIS_SPECIFIER
XQueryNodeType::BINARY_OP
XQueryNodeType::CASTABLE_EXPRESSION
XQueryNodeType::CAST_EXPRESSION
XQueryNodeType::COMMENT_CONSTRUCTOR
XQueryNodeType::COMPUTED_ATTRIBUTE_CONSTRUCTOR
XQueryNodeType::COMPUTED_ELEMENT_CONSTRUCTOR
XQueryNodeType::CONDITIONAL
XQueryNodeType::CONSTRUCTOR_CONTENT
XQueryNodeType::COUNT_CLAUSE
XQueryNodeType::DIRECT_ATTRIBUTE_CONSTRUCTOR
XQueryNodeType::DIRECT_ELEMENT_CONSTRUCTOR
XQueryNodeType::DIRECT_TEXT_CONSTRUCTOR
XQueryNodeType::DOCUMENT_CONSTRUCTOR
XQueryNodeType::EMPTY_SEQUENCE
XQueryNodeType::EXPRESSION
XQueryNodeType::FILTER
XQueryNodeType::FLWOR_EXPRESSION
XQueryNodeType::FOR_BINDING
XQueryNodeType::FOR_EXPRESSION
XQueryNodeType::FUNCTION_CALL
XQueryNodeType::GROUP_CLAUSE
XQueryNodeType::GROUP_KEY
XQueryNodeType::INSTANCE_OF_EXPRESSION
XQueryNodeType::LET_BINDING
XQueryNodeType::LET_EXPRESSION
XQueryNodeType::LITERAL
XQueryNodeType::LOCATION_PATH
XQueryNodeType::LOOKUP_EXPRESSION
XQueryNodeType::MAP_CONSTRUCTOR
XQueryNodeType::NAME_TEST
XQueryNodeType::NODE_TEST
XQueryNodeType::NODE_TYPE_TEST
XQueryNodeType::NUMBER
XQueryNodeType::ORDER_CLAUSE
XQueryNodeType::ORDER_SPEC
XQueryNodeType::PATH
XQueryNodeType::PI_CONSTRUCTOR
XQueryNodeType::PREDICATE
XQueryNodeType::PROCESSING_INSTRUCTION_TEST
XQueryNodeType::QUANTIFIED_BINDING
XQueryNodeType::QUANTIFIED_EXPRESSION
XQueryNodeType::ROOT
XQueryNodeType::STEP
XQueryNodeType::STRING
XQueryNodeType::TEXT_CONSTRUCTOR
XQueryNodeType::TREAT_AS_EXPRESSION
XQueryNodeType::TYPESWITCH_CASE
XQueryNodeType::TYPESWITCH_DEFAULT_CASE
XQueryNodeType::TYPESWITCH_EXPRESSION
XQueryNodeType::UNARY_OP
XQueryNodeType::UNION
XQueryNodeType::VARIABLE_REFERENCE
XQueryNodeType::WHERE_CLAUSE
XQueryNodeType::WILDCARD
XQuery module documentation © Paul Manias © 2025-2026