Home >Online Product Documentation >Table of Contents >Example of Calling the document() Function
Suppose you have the following XML document:
The following query returns the bookstore elements:
Now suppose you pass this query to the document() function as follows:
This query returns the root nodes of bookstore1.xml, bookstore2.xml, and bookstore3.xml.