devxlogo

Tip Bank

Read from a Sequence of Items in Saxon 8

As you probably know, an XPath 2.0 expression returns a sequence of items (nodes and atomic values). The following code shows you how to read from a sequence of items

Find Common Denominators in C++

The functions in this tip find the greatest common divisor (GCD) or the least common multiple (LCM) of two given integers. Getting the GCD through recursion: int GCD(int x,int y)

How to Use Oracle Java XQuery API

This code outlines the main steps involved in using the Oracle Java XQuery API (OJXQI). If you are familiar with the DataDirectXQuery – XQuery for Java (DDXQ-XQJ), you may notice

Using the URLEncoder/URLDecoder Classes

To include special characters such as spaces and quotes in a URL string, you need to encode them. Similarly, you need to decode encoded characters in a URL to recover

Using Firefox’s JavaScript Console

When a JavaScript error occurs in IE, it shows a popup message asking whether you want to continue the script (if you’ve disabled this popup window, the error notification shows