Wildcards

XPATH allows the use of wildcards to write more robust path expressions where the use of specific path expressions is either impossible or undesirable.

How to read an XML attribute value

There are a number of methods to read an XML attribute value. We present two common methods here: Locate and read an element value using the XML DOM; or Locate and read an element using XPATH expressions.

Node Relationships

XML defines various node relationship types: parent, child, sibling, ancestor and descendent. Understanding how these relationships function is a prerequisite of document manipulation and queries(i.e. XPath)

What is XPATH?

The World Wide Web Consortium (W3C) defines XPATH (1.0, 2.0, 3.0)  as follows: XPath is a language for addressing parts of an XML document, designed to be used by both XSLT and XPointer. The quoted definition from the W3C is correct, however, we feel that a better definition would be: XPATH is a path addressing […]

How to read an XML element value

There are a number of methods to read an XML element value. We present two common methods here: Locate and read an element value using the XML DOM; or Locate and read an element using XPATH expressions.

XPATH Data Types

XPATH is a query-language specifically designed to retrieve results from an XML document hierarchy. As such the value of the result can be one of a finite set of data types where the data type is defined by the values it can take as well as the operations / functions which can be performed on […]