XQuery uses input functions to identify the data to be queried. There are two input functions:
Table 1.1. Entity References Predefined in XQuery
If our sample data is in a file named books.xml , then the following query returns the entire document: doc("books.xml") A dynamic error is raised if the doc() function is not able to locate the specified document or the collection() function is not able to locate the specified collection. |