|
Home >Online Product Documentation >Table of Contents >Starting at the Root Node Starting at the Root Node
To specify that the XPath processor should start at the root node when it evaluates nodes for a query, insert a forward slash ( In an XML document, there is no text that corresponds to the root node. Externally, a root node is really a concept. Internally, there are data structures that represent this concept, but there is no text that you can point to and call a root node. The following query instructs the XPath processor to start at the root node, as indicated by the forward slash at the beginning of the query.
This query searches the children of the root node for a The following query returns the entire document, starting with the root node. As you can see, the entire query is just a forward slash: This query returns everything - comments, declarations, processing instructions, the document element, and any elements, attributes, comments, and processing instructions that the document element contains. |
XML Schema-Aware Queries and Stylesheets
Learn how to simplify XSLT and XQuery applications using Schema Aware XSLT and XQuery processing technologies.
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.
Java XML Parser
Stylus Studio's support for Java XML Parser is able to Validate XML Using any Java XML Parser, Edit, Debug, Profile and Map XSLT using any Java XSLT Processor, Create PDF files Using Apache FOP, hand have Support for Microsoft XML Parsers as well.
XML Well-Formedness Checker & XML Indenter
Tidy up your XML documents with powerful integrated XML editing utilities including a single-click XML formatter, pretty printer, XML indenter and XML well formedness checker.


