|
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.
|
Validate XML Using XSD
You can validate XML documents against any data model defined using W3C XSD, using any major XSD Validator, including MSXML 3.0, MSXML 4.0, MSXML 6.0, Xerces-J, Xerces-C, Microsoft System.XML (1.0 and 2.0), XSV, the Saxonica XSD Validator and others.
DTD Generator
Stylus Studio's DTD Generator supports the automatic generation and association of both internal and external DTDs based on XML instance documents.
Editing XSL Stylesheets
Learn how our powerful XSL stylesheet editor with built-in preview capabilities and synchronized visual and text-based stylesheet editors simplifies XSL and XSLT stylesheet development.
Building Workflow Applications with XML
Learn how to design custom XML workflow applications - from modeling your data and information processes, to capturing input from users in XML, and finally, generating useful queries and reports from the XML data -- using XSLT & XQuery technologies.