xpath library

Dart XPath adds support of XPath 3.1 expressions to the XML library.

Classes

XPathAnyUri
Represents an xs:anyURI atomic value.
XPathArray
Represents an XDM 3.1 array item (array(*)).
XPathAtomic
Base class for all atomic values in the XDM 3.1 data model.
XPathBinary
Representation of binary atomic values (xs:base64Binary and xs:hexBinary).
XPathBoolean
Represents an xs:boolean atomic value.
XPathConfiguration
Static configuration for XPath evaluation.
XPathContext
Dynamic execution context to evaluate XPath expressions.
XPathDateTime
Representation of XPath date and time values (xs:dateTime, xs:dateTimeStamp, xs:date, xs:time, xs:gYearMonth, xs:gYear, xs:gMonthDay, xs:gMonth, and xs:gDay).
XPathDecimal
Arbitrary-precision decimal (xs:decimal).
XPathDouble
64-bit IEEE 754 float (xs:double and xs:float).
XPathDuration
Representation of XPath duration values (xs:duration, xs:yearMonthDuration, and xs:dayTimeDuration).
XPathErrorCode
XPath 3.1 and XQuery standard error codes.
XPathFunction
A callable XPath function item (builtin, anonymous, or partial).
XPathFunctionItem
Base class for all function items (functions, maps, arrays) in XDM 3.1.
XPathInteger
Arbitrary-precision integer (xs:integer and subtypes).
XPathItem
Base interface for all items in the XDM 3.1 data model.
XPathMap
Represents an XDM 3.1 map item (map(*)).
XPathNode
Represents an XML node item in the XDM 3.1 data model.
XPathNumeric
Sealed base class for all XDM numeric atomic values.
XPathQName
Represents an xs:QName atomic value.
XPathSequence
Base class for all sequences in the XDM 3.1 data model.
XPathString
Represents an xs:string (or derived subtype) atomic value.
XPathType
XDM 3.1 type descriptor hierarchy.
XPathUntypedAtomic
Represents an xs:untypedAtomic value.

Extensions

XPathExtension on XmlNode
Extension providing XPath 3.1 evaluation methods on XmlNode.
XPathGenerator on XmlNode
Extension providing XPath generator capabilities on XmlNode.

Typedefs

XPathFunction0 = XPathSequence Function(XPathContext context)
Function callback accepting 0 arguments.
XPathFunction1 = XPathSequence Function(XPathContext context, XPathSequence a1)
Function callback accepting 1 argument.
XPathFunction2 = XPathSequence Function(XPathContext context, XPathSequence a1, XPathSequence a2)
Function callback accepting 2 arguments.
XPathFunction3 = XPathSequence Function(XPathContext context, XPathSequence a1, XPathSequence a2, XPathSequence a3)
Function callback accepting 3 arguments.
XPathFunctionN = XPathSequence Function(XPathContext context, List<XPathSequence> args)
Function callback accepting a variable list of arguments.
XPathTraceCallback = void Function(XPathSequence value, String? label)
Function type for tracing evaluation.
XPathUnparsedTextLoader = String? Function(String uri, String? encoding)
Function type for loading unparsed text.

Exceptions / Errors

XPathEvaluationException
Exception thrown when calling an XPath function or evaluating an expression fails.
XPathParserException
Exception thrown when parsing of an XPath expression fails.