Advertisment

Advanced XQuery: Creating custom functions

author-image
CIOL Bureau
Updated On
New Update

BANGALORE, INDIA: XQuery has quickly become the industry standard for querying XML documents. However, anyone who works with complex XML documents inevitably finds that detailed XQuery expressions can quickly become awkward and hard to understand. Further, some XQuery expressions are repeated within a variety of processing routines. This creates redundant expressions and adds complexity to system maintenance.

Advertisment

Enter XQuery functions. They provide a powerful and often overlooked means of processing XML with three distinct advantages: reusability, easier readability, and a separation of concerns.

This tip covers exactly what XQuery functions are, their advantages, and how to implement them. It guides you through the implementation of an XQuery function within a simulated eCommerce environment using a Java Runtime Environment (JRE) and DataDirect's XQJ package.

XQuery functions enable you to define common expressions once and reuse them frequently.

Click here to know more...!

tech-news