xsd.XPathExpression

To check an assertion, an instance of the XPath 2.0 data model is constructed, in which the element information item being assessed is the (parentless) root node, and elements and attributes are assigned types and values according to XPath 2.0 data model construction rules. When evaluated against this data model instance, test evaluates to either True or False.

class xsd.XPathExpression

Attributes

xsd.XPathExpression.base_URI

An xs:anyURI value. Optional. The base URI for relative paths in the XPath expression.

xsd.XPathExpression.default_namespace

An xs:anyURI value. Optional.

xsd.XPathExpression.expression

An XPath 2.0 expression. Required.

xsd.XPathExpression.namespace_bindings

A set of NamespaceBinding property records for the XPath expression.

Special methods

__bool__, __eq__, __ge__, __gt__, __le__, __lt__, __ne__