|
Home > Online Product Documentation > Table of Contents > Obtaining Particular Types of Nodes By Using Node Tests Obtaining Particular Types of Nodes By Using Node TestsThe node tests allow you to obtain nodes according to their type. Node test is an XPath term. Although a node test looks like a function, it is not a function. You can use node tests with filters and position specifiers. They resolve to the set of children of the context node that meets the restrictions you specify. Node tests for XPath 2.0 add to the set of node tests supported for XPath 1.0. Node tests common to both XPath 1.0 and XPath 2.0 are shown in Table 70. Node tests unique to XPath 2.0 are shown in Table 70.
For each
Following is a query that finds the third
About the Document ObjectIn the Document Object Model (DOM), a document contains comments, processing instructions, and declarations, as well as the document element. As in XPath, the root node is the root of the DOM tree, and the root node is not the same as the document element. This allows comments, declarations, and processing instructions at the document entity level. For example, the following query finds all comments at the document entity level. In other words, it finds all comments that are immediate children of the root node.
This query returns the comment at the beginning of the
Getting Nodes of a Particular TypeA query like the following returns all the comments in a document:
The following query returns the third comment in the document.
|
Learn XQuery in 10 Minutes, by Dr. Michael Kay - An XQuery Tutorial
Learn XQuery in 10 Minutes By Dr. Michael Kay is for all those people who really want to know what XQuery is, but don't have the time to find out. It's the fastest XQuery tutorial on the planet - read it now!
Stylus Studio Enables Multi-Channel Publishing for University of Pittsburg Professor
Learn how Dr. David Birnbaum of the University of Pittsburgh uses Stylus Studio to develop customized XSLT stylesheets that produce enhanced versions of source documents in different output formats, including Web and print.
Improving XSLT and XQuery Performance with Stylus Studio
This online video demonstration covers XQuery and XSLT performance tuning using the Stylus Studio XSLT profiler and the XQuery profiler.
Building DataDirect XQuery Applications
Stylus Studio further simplifies relational and XML data integration by providing advanced XQuery tools support for building XQuery applications which use DataDirect XQuery.