XUF Examples
DataDirect XQuery bundles several examples that help you understand how to use XUF in your XQuery applications. These examples are located in the \examples\UpdateFacility folder where you install DataDirect XQuery.
These examples, and the XUF expressions and functions they illustrate, are described in the sections that follow this one.
Sample Files
Most DataDirect XQuery XUF examples use these sample files:
- holdings.xml – an XML document that lists stock holding information. The holdings.xml document has the following structure:
<table name="HOLDINGS">
<holdings>
<UserId>Jonathan</UserId>
<StockTicker>PRGS</StockTicker>
<Shares>23</Shares>
</holdings>
<holdings>
<UserId>Minollo</UserId>
<StockTicker>PRGS</StockTicker>
<Shares>4000000</Shares>
</holdings>
...
</table>
- users.xml – an XML document that lists individuals’ information. The users.xml document has the following structure:
<table name="users">
<users>
<UserId>Minollo</UserId>
<FirstName>Carlo</FirstName>
<LastName>Innocenti</LastName>
<OtherName/>
<MemberSince>2004-06-16T00:00:00</MemberSince>
</users>
...
</table>