Skip to main content

  • XPath Syntax

    • Selecting Nodes


      XPath uses path expressions to select nodes in an XML document.

    • Expression
      Description

      nodename
      Selects all child nodes of the named node

      /
      Selects from the root node

      //
      Selects nodes in the document from the current node that
      match the selection no matter where they are

      .
      Selects the current node

      ..
      Selects the parent of the current node

      @
      Selects attributes
    • 10 more annotations...
  • XPath Nodes

    • In XPath, there are seven kinds of nodes: element, attribute,
      text, namespace, processing-instruction, comment, and document (root) nodes.

    • XML documents are treated as trees of nodes. The root of the tree is called the
      document node (or root node).
    • 6 more annotations...
  • Introduction to XPath

    • XPath is a language for finding information in an XML document
      • What is XPath?


        • XPath is a syntax for defining parts of an XML document
        • XPath uses path expressions to navigate in XML documents
        • XPath contains a library of standard functions
        • XPath is a major element in XSLT
        • XPath is a W3C recommendation
1 - 4 of 4
Showing 20 items per page
List Comments (0)